pacman/query.c: add missing free()

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-10-29 23:11:49 -05:00
parent aea45a8b20
commit 6af7dbcf72
1 changed files with 1 additions and 2 deletions

View File

@ -47,18 +47,17 @@ static char *resolve_path(const char* file)
str = calloc(PATH_MAX+1, sizeof(char));
if(!str) {
/* null hmmm.... */
return(NULL);
}
if(!realpath(file, str)) {
free(str);
return(NULL);
}
return(str);
}
static int query_fileowner(alpm_list_t *targets)
{
int ret = 0;