aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/urlglob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index cc6791ee4..d7c322f21 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -472,6 +472,7 @@ char *glob_match_url(char *filename, URLGlob *glob)
break;
default:
printf("internal error: invalid pattern type (%d)\n", pat.type);
+ free(target);
return NULL;
}
}