# HG changeset patch # User albeu # Date 1047663933 0 # Node ID 89a31cf91a059b4384b07cb7c4c75dea2442544c # Parent 31126ea5cd36a2a0f52d1b7f8b1d65c479bb871d Fix some memleaks diff -r 31126ea5cd36 -r 89a31cf91a05 asxparser.c --- a/asxparser.c Fri Mar 14 17:42:21 2003 +0000 +++ b/asxparser.c Fri Mar 14 17:45:33 2003 +0000 @@ -477,6 +477,8 @@ return; } play_tree_set_param(pt,name,val); + free(name); + if(val) free(val); } static void @@ -516,11 +518,13 @@ 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 @@ play_tree_parser_free(ptp); free_stream(stream); - + free(href); //mp_msg(MSGT_PLAYTREE,MSGL_INFO,"Need to implement entryref\n"); return pt;