diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-11 17:49:59 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-11 17:49:59 +0000 |
commit | bcc251760447cab00f69f05e8c12885fefadd390 (patch) | |
tree | 3cc94208e16f4c4c07720fb23ad97519a971fd58 /libmpdemux/http.c | |
parent | a38e327e86cfc8dc9c07c37c77925d582e2cd4d1 (diff) | |
download | mpv-bcc251760447cab00f69f05e8c12885fefadd390.tar.bz2 mpv-bcc251760447cab00f69f05e8c12885fefadd390.tar.xz |
free http field_name to fix memleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14461 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/http.c')
-rw-r--r-- | libmpdemux/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/http.c b/libmpdemux/http.c index f92aecf748..3f2f5bde02 100644 --- a/libmpdemux/http.c +++ b/libmpdemux/http.c @@ -36,6 +36,8 @@ http_free( HTTP_header_t *http_hdr ) { field = http_hdr->first_field; while( field!=NULL ) { field2free = field; + if (field->field_name) + free(field->field_name); field = field->next; free( field2free ); } |