[vlc-devel] [PATCH] text/url: fix memory-leak in vlc_uri_compose
Filip Roséen
filip at videolabs.io
Sun Jul 17 16:39:44 CEST 2016
---
src/text/url.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/text/url.c b/src/text/url.c
index e3891fe..88a4740 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -629,6 +629,7 @@ char *vlc_uri_compose(const vlc_url_t *uri)
goto error;
fprintf(stream, ":%s", enc);
+ free(enc);
}
fputc('@', stream);
}
--
2.9.0
More information about the vlc-devel
mailing list