1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-12-04 14:46:42 -05:00

Fix double free

This commit is contained in:
Drew DeVault 2020-11-08 12:12:43 -05:00
parent 02a386b568
commit 57f4fcdc41

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