]> git.sesse.net Git - mlt/commitdiff
fix memory leak (coverity-710865)
authorDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 01:42:23 +0000 (18:42 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 01:42:23 +0000 (18:42 -0700)
src/modules/xml/producer_xml.c

index a9396fe1f9d426a0b4b540c0d1eccd897daa753d..082dd9cedb4952ce3b78ad9c38dcb169eb329453 100644 (file)
@@ -1533,7 +1533,7 @@ static int file_exists( char *file )
 mlt_producer producer_xml_init( mlt_profile profile, mlt_service_type servtype, const char *id, char *data )
 {
        xmlSAXHandler *sax = calloc( 1, sizeof( xmlSAXHandler ) );
-       struct deserialise_context_s *context = calloc( 1, sizeof( struct deserialise_context_s ) );
+       struct deserialise_context_s *context;
        mlt_properties properties = NULL;
        int i = 0;
        struct _xmlParserCtxt *xmlcontext;