Permalink
Browse files

Fix minor mlt_properties leak (coverity-1215702).

  • Loading branch information...
1 parent c0c9fac commit 9beafb6ed20f922c24759ba4f4934a802e144af9 @ddennedy ddennedy committed May 24, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/modules/xml/producer_xml.c
@@ -1604,6 +1604,10 @@ static void retain_services( struct deserialise_context_s *context, mlt_service
mlt_properties_set_data( MLT_SERVICE_PROPERTIES(service), "xml_retain", retain_list, 0,
(mlt_destructor) mlt_properties_close, NULL );
}
+ else
+ {
+ mlt_properties_close( retain_list );
+ }
}
mlt_producer producer_xml_init( mlt_profile profile, mlt_service_type servtype, const char *id, char *data )

0 comments on commit 9beafb6

Please sign in to comment.