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:
parent
02a386b568
commit
57f4fcdc41
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user