From 3641b52010003bb5c748d3a675abef35cfa9b095 Mon Sep 17 00:00:00 2001 From: rtognimp Date: Fri, 10 Mar 2006 22:15:50 +0000 Subject: Fix possible use of body uninitialized. Remove an unneeded free (body is not allocated before it). CID 243 and more git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17804 b3059339-0415-0410-9bf9-f77b7e298cf2 --- asxparser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'asxparser.c') diff --git a/asxparser.c b/asxparser.c index 65c7d8ccc6..c794a5ff57 100644 --- a/asxparser.c +++ b/asxparser.c @@ -644,7 +644,7 @@ asx_parse_repeat(ASX_Parser_t* parser,char* buffer,char** _attribs) { play_tree_t* asx_parser_build_tree(char* buffer,int deep) { - char *element,*asx_body,**asx_attribs,*body, **attribs; + char *element,*asx_body,**asx_attribs,*body = NULL, **attribs; int r; play_tree_t *asx,*entry,*list = NULL; ASX_Parser_t* parser = asx_parser_new(); @@ -666,7 +666,6 @@ asx_parser_build_tree(char* buffer,int deep) { if(strcasecmp(element,"ASX") != 0) { mp_msg(MSGT_PLAYTREE,MSGL_ERR,"first element isn't ASX, it's %s\n",element); asx_free_attribs(asx_attribs); - if(body) free(body); asx_parser_free(parser); return NULL; } -- cgit v1.2.3