Skip to content

Commit f433b47

Browse files
plmeta: memleak fix
1 parent 69c86d7 commit f433b47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plmeta.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ pl_add_empty_meta_for_key (playItem_t *it, const char *key) {
148148

149149
m->key = metacache_add_string (lc_key);
150150

151+
free (lc_key);
152+
lc_key = NULL;
153+
151154
if (key[0] == ':' || key[0] == '_' || key[0] == '!') {
152155
if (tail) {
153156
tail->next = m;

0 commit comments

Comments
 (0)