changeset 5737:192d6ebe32ff libavformat

Plug memory leak in NSV demuxer. Patch by Jai Menon.
author vitor
date Wed, 03 Mar 2010 17:26:00 +0000
parents 9a98bc214731
children 7152149eb03f
files nsvdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nsvdec.c	Wed Mar 03 09:44:30 2010 +0000
+++ b/nsvdec.c	Wed Mar 03 17:26:00 2010 +0000
@@ -728,6 +728,10 @@
 
     av_freep(&nsv->nsvs_file_offset);
     av_freep(&nsv->nsvs_timestamps);
+    if (nsv->ahead[0].data)
+        av_free_packet(&nsv->ahead[0]);
+    if (nsv->ahead[1].data)
+        av_free_packet(&nsv->ahead[1]);
 
 #if 0