[MPlayer-cvslog] CVS: main/libmpdemux http.c,1.19,1.20

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Jan 11 18:50:01 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv11264

Modified Files:
	http.c 
Log Message:
free http field_name to fix memleak


Index: http.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/http.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- http.c	1 May 2004 23:35:25 -0000	1.19
+++ http.c	11 Jan 2005 17:49:59 -0000	1.20
@@ -36,6 +36,8 @@
 	field = http_hdr->first_field;
 	while( field!=NULL ) {
 		field2free = field;
+		if (field->field_name)
+		  free(field->field_name);
 		field = field->next;
 		free( field2free );
 	}




More information about the MPlayer-cvslog mailing list