summaryrefslogtreecommitdiff
path: root/lib/fileinfo.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-10-11 19:41:30 +0200
committerYang Tse <yangsita@gmail.com>2011-10-11 19:41:30 +0200
commit584dc8b8af862f7f47a3a9f02f874ac0bd0076be (patch)
tree5e5ff41b3862251704b8f46f36bcf9052ad48e52 /lib/fileinfo.c
parenta84b8a39224d0c668d80fed561bc89b4144edbb4 (diff)
downloadcurl-584dc8b8af862f7f47a3a9f02f874ac0bd0076be.tar.gz
OOM handling/cleanup slight adjustments
Diffstat (limited to 'lib/fileinfo.c')
-rw-r--r--lib/fileinfo.c3
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);
}