Compare commits
No commits in common. "d7da8e0a54b0f8fb312bfc6186d17bdbc1c9ed27" and "928e9c822378d86790659659af9589d75dbe05f7" have entirely different histories.
d7da8e0a54
...
928e9c8223
1 changed files with 2 additions and 0 deletions
|
@ -237,6 +237,7 @@ HttpRouterRoute(HttpRouter * router, char *path, void *args, void **ret)
|
|||
{
|
||||
if (regexec(&val->regex, pathPart, REG_MAX_SUB, pmatch, 0) == 0)
|
||||
{
|
||||
Free(pathPart);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -267,6 +268,7 @@ HttpRouterRoute(HttpRouter * router, char *path, void *args, void **ret)
|
|||
substr = StrSubstr(pathPart, cpmatch.rm_so, cpmatch.rm_eo);
|
||||
if (pmatch[i].rm_so == -1)
|
||||
{
|
||||
Free(pathPart);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue