diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 13:37:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 13:37:55 +0000 |
commit | fb366ed35f138d0e9df6b4cd8e64f4ed3684f759 (patch) | |
tree | aef20fa9814917e875d3797dd9789313ceab44eb | |
parent | b352ffca1508ba12bc957f97fbf51e6a2ad109ef (diff) |
free data on failure
-rw-r--r-- | src/urlglob.c | 1 |
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; } } |