Mercurial > mplayer.hg
changeset 37042:ef0fa4caac9c
cddb: Fix memleak in error case.
author | reimar |
---|---|
date | Sun, 06 Apr 2014 18:48:45 +0000 |
parents | 8aa4f25a4c17 |
children | 43a8e37a3dcf |
files | stream/stream_cddb.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_cddb.c Sun Apr 06 18:46:45 2014 +0000 +++ b/stream/stream_cddb.c Sun Apr 06 18:48:45 2014 +0000 @@ -578,6 +578,7 @@ // do a sanity check if (http_hdr->body_size < (unsigned int)(ptr2 - ptr)) { mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_MPDEMUX_CDDB_UnexpectedFIXME); + free(ptr); return -1; } cddb_data->xmcd_file = ptr;