]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
m3u parser: fix memory leak introduced by the previous change
authorJaroslav Kysela <perex@perex.cz>
Thu, 19 Nov 2015 15:09:16 +0000 (16:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 19 Nov 2015 15:09:16 +0000 (16:09 +0100)
src/misc/m3u.c

index 5548f0158aa5fcc4f8fbd3b1bfe9e84ac64212e8..a824b33a0210410ff3066c629e60bdd61b6a95af 100644 (file)
@@ -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;