[MPlayer-cvslog] r35714 - trunk/libaf/af_resample.c

upsuper subversion at mplayerhq.hu
Sun Jan 6 14:26:16 CET 2013


Author: upsuper
Date: Sun Jan  6 14:26:16 2013
New Revision: 35714

Log:
Fix a resource leak.

Modified:
   trunk/libaf/af_resample.c

Modified: trunk/libaf/af_resample.c
==============================================================================
--- trunk/libaf/af_resample.c	Sun Jan  6 10:45:34 2013	(r35713)
+++ trunk/libaf/af_resample.c	Sun Jan  6 14:26:16 2013	(r35714)
@@ -244,6 +244,7 @@ static int control(struct af_instance_s*
       if(NULL == w || NULL == s->w ||
 	 -1 == af_filter_design_fir(s->up*L, w, &fc, LP|KAISER , 10.0)){
 	mp_msg(MSGT_AFILTER, MSGL_ERR, "[resample] Unable to design prototype filter.\n");
+	free(w);
 	return AF_ERROR;
       }
       // Copy data from prototype to polyphase filter


More information about the MPlayer-cvslog mailing list