mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2025-01-03 14:57:39 -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)
|
route_match(struct gmnisrv_route *route, const char *path, char **revised)
|
||||||
{
|
{
|
||||||
free(*revised);
|
free(*revised);
|
||||||
|
*revised = NULL;
|
||||||
switch (route->routing) {
|
switch (route->routing) {
|
||||||
case ROUTE_PATH:;
|
case ROUTE_PATH:;
|
||||||
size_t l = strlen(route->path);
|
size_t l = strlen(route->path);
|
||||||
|
Loading…
Reference in New Issue
Block a user