diff options
author | Yang Tse <yangsita@gmail.com> | 2011-10-11 19:41:30 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-10-11 19:41:30 +0200 |
commit | 584dc8b8af862f7f47a3a9f02f874ac0bd0076be (patch) | |
tree | 5e5ff41b3862251704b8f46f36bcf9052ad48e52 /lib/fileinfo.c | |
parent | a84b8a39224d0c668d80fed561bc89b4144edbb4 (diff) | |
download | curl-584dc8b8af862f7f47a3a9f02f874ac0bd0076be.tar.gz |
OOM handling/cleanup slight adjustments
Diffstat (limited to 'lib/fileinfo.c')
-rw-r--r-- | lib/fileinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fileinfo.c b/lib/fileinfo.c index 16166687e..4ffcbbe29 100644 --- a/lib/fileinfo.c +++ b/lib/fileinfo.c @@ -48,8 +48,7 @@ void Curl_fileinfo_dtor(void *user, void *element) if(!finfo) return; - if(finfo->b_data) - free(finfo->b_data); + Curl_safefree(finfo->b_data); free(finfo); } |