From: Dan Dennedy Date: Mon, 23 Jul 2012 01:42:23 +0000 (-0700) Subject: fix memory leak (coverity-710865) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c296be124f6261f87c6ecd107a0a18159aa82c58;p=mlt fix memory leak (coverity-710865) --- diff --git a/src/modules/xml/producer_xml.c b/src/modules/xml/producer_xml.c index a9396fe1..082dd9ce 100644 --- a/src/modules/xml/producer_xml.c +++ b/src/modules/xml/producer_xml.c @@ -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;