[MPlayer-cvslog] r37138 - trunk/stream/stream_cddb.c
reimar
subversion at mplayerhq.hu
Sun Apr 6 20:48:45 CEST 2014
Author: reimar
Date: Sun Apr 6 20:48:45 2014
New Revision: 37138
Log:
cddb: Fix memleak in error case.
Modified:
trunk/stream/stream_cddb.c
Modified: trunk/stream/stream_cddb.c
==============================================================================
--- trunk/stream/stream_cddb.c Sun Apr 6 20:46:45 2014 (r37137)
+++ trunk/stream/stream_cddb.c Sun Apr 6 20:48:45 2014 (r37138)
@@ -578,6 +578,7 @@ static int cddb_read_parse(HTTP_header_t
// 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;
More information about the MPlayer-cvslog
mailing list