Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
m3u parser: fix memory leak introduced by the previous change
  • Loading branch information
perexg committed Nov 19, 2015
1 parent 4aeabc6 commit 9c23b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/m3u.c
Expand Up @@ -91,7 +91,7 @@ static const char *get_url
if (rel[0] == '/') {
snprintf(buf, buflen, "%s%s", url, rel + 1);
} else {
url2 = strdup(url);
url2 = strdupa(url);
p = strrchr(url2, '/');
if (p == NULL)
return rel;
Expand Down

0 comments on commit 9c23b92

Please sign in to comment.