Fix potential double-free issue in Cytoplasm #22

Merged
jordan merged 2 commits from lda/Cytoplasm:fix-router-issue into master 2024-01-05 00:32:58 +00:00
Showing only changes of commit 44b7f45bb7 - Show all commits

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;
} }