mpcinfo: Fix memory leaks

Closes #1838
This commit is contained in:
Igor
2016-10-11 13:34:29 +03:00
committed by Patrick Griffis
parent 2a81b98e7b
commit f38261f666
3 changed files with 17 additions and 8 deletions

View File

@@ -104,6 +104,7 @@ struct tagInfo getOggHeader(char *file){
if (strcmp(name,"GENRE")==0) info.genre=val;
if (strcmp(name,"COMMENT")==0) info.comment=val;
pos+=4+tagLen;
free(name);
}
if (info.artist==NULL) info.artist="";
if (info.album==NULL) info.album ="";