From 9013cbdefbc942de7b3959bb553517bd112dc947 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 23 Mar 2024 12:10:13 +0100 Subject: [PATCH] Free auxiliary string in File_normalize_path() Fixes: https://github.com/dillo-browser/dillo/issues/87 Reported-by: dogma --- dpi/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dpi/file.c b/dpi/file.c index f8415101..0e3390b5 100644 --- a/dpi/file.c +++ b/dpi/file.c @@ -841,6 +841,7 @@ static char *File_normalize_path(const char *orig) basename ? "/" : "", str); dFree(basename); + dStr_free(tmp, 1); /* Parse possible hexadecimal octets in the URI path */ for (i = 0; ds->str[i]; ++i) {