diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-14 17:45:33 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-14 17:45:33 +0000 |
commit | 91a54c2e9e7859e95f5a27e21fec95c245899d79 (patch) | |
tree | f6fc5bcea7d9857308d43f8cc088bdd9e17272c3 /asxparser.c | |
parent | 472a166803cda02f4f52c3e1c5af2a6bade9fbe4 (diff) | |
download | mpv-91a54c2e9e7859e95f5a27e21fec95c245899d79.tar.bz2 mpv-91a54c2e9e7859e95f5a27e21fec95c245899d79.tar.xz |
Fix some memleaks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9586 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'asxparser.c')
-rw-r--r-- | asxparser.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |