changeset 14460:475c551d9890

free http field_name to fix memleak
author reimar
date Tue, 11 Jan 2005 17:49:59 +0000
parents 54cdb2a85a86
children 1363bbf9d5cc
files libmpdemux/http.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/http.c	Tue Jan 11 11:54:04 2005 +0000
+++ b/libmpdemux/http.c	Tue Jan 11 17:49:59 2005 +0000
@@ -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 );
 	}