changeset 17789:9f0c42967ce5

fix minor (i.e. unlikely to ever happen) leak when init fails
author reimar
date Thu, 09 Mar 2006 22:11:39 +0000
parents 2fe769b4b30b
children 99a2481164ac
files libmpdemux/demux_aac.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;