[MPlayer-dev-eng] [PATCH] Memory Leak in libmpdemux

Bryan Wilkerson bryanwilkerson at yahoo.com
Thu Jun 16 01:58:25 CEST 2005


The attached patch fixes a memory leak in lilibmpdemux
 Currently leaks 68 bytes for each qualifying avi file
played.

-bryan

=====================================================
---
/home/bwilkers/src/mplayer/MPlayer-1.0pre7/libmpdemux/aviheader.c
2005-02-22 12:24:18.000000000 -0800
+++ aviheader.c	2005-06-15 16:40:59.000000000 -0700
@@ -332,6 +332,7 @@
 		sh_video->aspect =
GET_AVI_ASPECT(vprp->dwFrameAspectRatio);
 	}
 	if(verbose>=1) print_vprp(vprp);
+	free(vprp);
 	break;
     }
     case mmioFOURCC('d', 'm', 'l', 'h'): {





More information about the MPlayer-dev-eng mailing list