From f38261f666a2e41bbd189940ca7d419b3e726376 Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 11 Oct 2016 13:34:29 +0300 Subject: mpcinfo: Fix memory leaks Closes #1838 --- plugins/mpcinfo/oggInfo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mpcinfo/oggInfo.c') 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 =""; -- cgit 1.4.1