Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pacman/query.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 8a01d829..42e163ef 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -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;