diff options
author | Igor <f2404@yandex.ru> | 2016-10-11 13:34:29 +0300 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-10-11 09:55:29 -0400 |
commit | f38261f666a2e41bbd189940ca7d419b3e726376 (patch) | |
tree | 4129ce87ce3e2011b6b089d2f33ae8e5e8928430 /plugins/mpcinfo/oggInfo.c | |
parent | 2a81b98e7bcad05bf54d9c423f68df6492ae4326 (diff) |
mpcinfo: Fix memory leaks
Closes #1838
Diffstat (limited to 'plugins/mpcinfo/oggInfo.c')
-rw-r--r-- | plugins/mpcinfo/oggInfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mpcinfo/oggInfo.c b/plugins/mpcinfo/oggInfo.c index e1191649..8ecf0f5b 100644 --- a/plugins/mpcinfo/oggInfo.c +++ b/plugins/mpcinfo/oggInfo.c @@ -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 =""; |