changeset 35289:3ae6e6d9186f

http_set_field only makes a copy of the string, so we still need to free it.
author reimar
date Sat, 10 Nov 2012 12:20:36 +0000
parents 4297ab925799
children 17a449bc5106
files stream/cookies.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cookies.c	Sat Nov 10 12:18:01 2012 +0000
+++ b/stream/cookies.c	Sat Nov 10 12:20:36 2012 +0000
@@ -296,6 +296,5 @@
 
     if (found_cookies)
 	http_set_field(http_hdr, buf);
-    else
-	free(buf);
+    free(buf);
 }