# HG changeset patch # User reimar # Date 1141942299 0 # Node ID 9f0c42967ce56d3df4948c9798cc60e02c2dcba8 # Parent 2fe769b4b30b0c54f859e72502d69d94186d5303 fix minor (i.e. unlikely to ever happen) leak when init fails diff -r 2fe769b4b30b -r 9f0c42967ce5 libmpdemux/demux_aac.c --- a/libmpdemux/demux_aac.c Thu Mar 09 22:09:03 2006 +0000 +++ b/libmpdemux/demux_aac.c Thu Mar 09 22:11:39 2006 +0000 @@ -56,7 +56,10 @@ priv->buf = (uint8_t*) malloc(8); if(!priv->buf) + { + free(priv); return 0; + } demuxer->priv = priv; return 1;