free data on failure

This commit is contained in:
Daniel Stenberg 2003-08-14 13:37:55 +00:00
parent b352ffca15
commit fb366ed35f
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}