diff --git a/src/res.c b/src/res.c index 278ca936..0062c63a 100644 --- a/src/res.c +++ b/src/res.c @@ -170,6 +170,8 @@ prune_non_exact (struct robot_specs *specs) for (i = 0, j = 0; i < specs->count; i++) if (specs->paths[i].user_agent_exact_p) newpaths[j++] = specs->paths[i]; + else + xfree (specs->paths[i].path); assert (j == cnt); xfree (specs->paths); specs->paths = newpaths;