aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 13:37:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 13:37:55 +0000
commitfb366ed35f138d0e9df6b4cd8e64f4ed3684f759 (patch)
treeaef20fa9814917e875d3797dd9789313ceab44eb
parentb352ffca1508ba12bc957f97fbf51e6a2ad109ef (diff)
free data on failure
-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;
}
}