]> git.sesse.net Git - mlt/commitdiff
fix memory leak if fail to alloc/init filter (coverity-714583)
authorDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:17:05 +0000 (23:17 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:17:05 +0000 (23:17 -0700)
src/modules/videostab/filter_videostab.c

index 947728c8b34a158aa1672e53e5d6781b5bdab812..3dcdcd5036a44ce2369355b95fe87fbc8f9dc70a 100644 (file)
@@ -200,7 +200,10 @@ mlt_filter filter_videostab_init( mlt_profile profile, mlt_service_type type, co
        {
                mlt_filter parent = mlt_filter_new();
                if ( !parent )
+               {
+                       free( self );
                        return NULL;
+               }
                parent->child = self;
                parent->close = filter_close;
                parent->process = filter_process;