[MPlayer-cvslog] CVS: main/libmpcodecs vd_lzo.c,1.6,1.7

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Mar 8 11:50:18 CET 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv2182

Modified Files:
	vd_lzo.c 
Log Message:
free tmp earlier, it is not needed below and might leak on errors otherwise


Index: vd_lzo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_lzo.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vd_lzo.c	6 Nov 2002 23:54:24 -0000	1.6
+++ vd_lzo.c	8 Mar 2006 10:50:16 -0000	1.7
@@ -120,6 +120,7 @@
 
 	/* decompress the frame */
 	r = lzo1x_decompress (data, len, tmp, &w, priv->wrkmem);
+	free(tmp);
 
 	if (r != LZO_E_OK) {
 	    /* this should NEVER happen */
@@ -142,7 +143,6 @@
 
 	if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,priv->codec)) return NULL;
 	init_done++;
-	free(tmp);
     }
 
     mpi = mpcodecs_get_image(sh, MP_IMGTYPE_TEMP, 0,




More information about the MPlayer-cvslog mailing list