forked from aniani/gmnisrv
1
0
Fork 0

Fix double free

This commit is contained in:
Drew DeVault 2020-11-08 12:12:43 -05:00
parent 02a386b568
commit 57f4fcdc41
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ static bool
route_match(struct gmnisrv_route *route, const char *path, char **revised)
{
free(*revised);
*revised = NULL;
switch (route->routing) {
case ROUTE_PATH:;
size_t l = strlen(route->path);