From 91a54c2e9e7859e95f5a27e21fec95c245899d79 Mon Sep 17 00:00:00 2001 From: albeu Date: Fri, 14 Mar 2003 17:45:33 +0000 Subject: Fix some memleaks git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9586 b3059339-0415-0410-9bf9-f77b7e298cf2 --- asxparser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'asxparser.c') diff --git a/asxparser.c b/asxparser.c index cf35151024..f761ef8f65 100644 --- a/asxparser.c +++ b/asxparser.c @@ -477,6 +477,8 @@ asx_parse_param(ASX_Parser_t* parser, char** attribs, play_tree_t* pt) { return; } play_tree_set_param(pt,name,val); + free(name); + if(val) free(val); } static void @@ -516,11 +518,13 @@ asx_parse_entryref(ASX_Parser_t* parser,char* buffer,char** _attribs) { stream=open_stream(href,0,&f); if(!stream) { mp_msg(MSGT_PLAYTREE,MSGL_WARN,"Can't open playlist %s\n",href); + free(href); return NULL; } if(stream->type != STREAMTYPE_PLAYLIST) { mp_msg(MSGT_PLAYTREE,MSGL_WARN,"URL %s dont point to a playlist\n",href); free_stream(stream); + free(href); return NULL; } @@ -532,7 +536,7 @@ asx_parse_entryref(ASX_Parser_t* parser,char* buffer,char** _attribs) { play_tree_parser_free(ptp); free_stream(stream); - + free(href); //mp_msg(MSGT_PLAYTREE,MSGL_INFO,"Need to implement entryref\n"); return pt; -- cgit v1.2.3