# HG changeset patch # User reimar # Date 1105465799 0 # Node ID 475c551d9890bfd7e96c0dd7840cf3cae09937d5 # Parent 54cdb2a85a86c71335caef5c19fbed2edb53ea11 free http field_name to fix memleak diff -r 54cdb2a85a86 -r 475c551d9890 libmpdemux/http.c --- 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 ); }