[MPlayer-cvslog] r35383 - trunk/stream/cookies.c

reimar subversion at mplayerhq.hu
Sat Nov 10 13:20:37 CET 2012


Author: reimar
Date: Sat Nov 10 13:20:36 2012
New Revision: 35383

Log:
http_set_field only makes a copy of the string, so we still need to
free it.

Modified:
   trunk/stream/cookies.c

Modified: trunk/stream/cookies.c
==============================================================================
--- trunk/stream/cookies.c	Sat Nov 10 13:18:01 2012	(r35382)
+++ trunk/stream/cookies.c	Sat Nov 10 13:20:36 2012	(r35383)
@@ -296,6 +296,5 @@ cookies_set(HTTP_header_t * http_hdr, co
 
     if (found_cookies)
 	http_set_field(http_hdr, buf);
-    else
-	free(buf);
+    free(buf);
 }


More information about the MPlayer-cvslog mailing list