projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd016fb
)
Fixed file handle leak in OOM condition.
author
Dan Fandrich
<dan@coneharvesters.com>
Wed, 4 Apr 2007 22:49:12 +0000
(22:49 +0000)
committer
Dan Fandrich
<dan@coneharvesters.com>
Wed, 4 Apr 2007 22:49:12 +0000
(22:49 +0000)
lib/cookie.c
patch
|
blob
|
history
diff --git
a/lib/cookie.c
b/lib/cookie.c
index
4a33845
..
e64bc49
100644
(file)
--- a/
lib/cookie.c
+++ b/
lib/cookie.c
@@
-972,6
+972,7
@@
int Curl_cookie_output(struct CookieInfo *c, char *dumphere)
format_ptr = get_netscape_format(co);
if (format_ptr == NULL) {
fprintf(out, "#\n# Fatal libcurl error\n");
+ fclose(out);
return 1;
}
fprintf(out, "%s\n", format_ptr);