[Ffmpeg-devel] [PATCH] two memory leak fix
Limin Wang
lance.lmwang
Mon Mar 5 13:46:49 CET 2007
Hi,
This patch fixes 2 memory leaks in ffmpeg.c, please review it
and see whether it's ok.
Thanks,
Limin
-------------- next part --------------
Index: ffmpeg.c
===================================================================
--- ffmpeg.c (revision 8245)
+++ ffmpeg.c (working copy)
@@ -1330,6 +1330,7 @@
}
}
}
+ av_freep(&samples);
}
return 0;
@@ -3812,7 +3813,8 @@
av_free(intra_matrix);
if(inter_matrix)
av_free(inter_matrix);
-
+ if(opt_names)
+ av_free(opt_names);
#ifdef CONFIG_POWERPC_PERF
extern void powerpc_display_perf_report(void);
powerpc_display_perf_report();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070305/528cc957/attachment.pgp>
More information about the ffmpeg-devel
mailing list