[FIX] Fix other potential double-free

Was done "à la va-vite" since I can't really work on it directly right now.
This commit is contained in:
lda 2024-01-01 07:57:11 -05:00
parent 3788d044e6
commit 44b7f45bb7

View file

@ -267,7 +267,6 @@ HttpRouterRoute(HttpRouter * router, char *path, void *args, void **ret)
substr = StrSubstr(pathPart, cpmatch.rm_so, cpmatch.rm_eo); substr = StrSubstr(pathPart, cpmatch.rm_so, cpmatch.rm_eo);
if (pmatch[i].rm_so == -1) if (pmatch[i].rm_so == -1)
{ {
Free(pathPart);
break; break;
} }