summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_aac.c')
-rw-r--r--libmpdemux/demux_aac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/demux_aac.c b/libmpdemux/demux_aac.c
index eb0d853933..9035c9f9b2 100644
--- a/libmpdemux/demux_aac.c
+++ b/libmpdemux/demux_aac.c
@@ -56,7 +56,10 @@ static int demux_aac_init(demuxer_t *demuxer)
priv->buf = (uint8_t*) malloc(8);
if(!priv->buf)
+ {
+ free(priv);
return 0;
+ }
demuxer->priv = priv;
return 1;