CVS: main asxparser.c,1.9,1.10
Update of /cvsroot/mplayer/main In directory mail:/var/tmp.root/cvs-serv18044 Modified Files: asxparser.c Log Message: Fix some memleaks Index: asxparser.c =================================================================== RCS file: /cvsroot/mplayer/main/asxparser.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- asxparser.c 12 Jan 2003 19:41:37 -0000 1.9 +++ asxparser.c 14 Mar 2003 17:45:33 -0000 1.10 @@ -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;
participants (1)
-
Alban Bedel CVS