Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-29 23:11:49 -0500
committerDan McGee <dan@archlinux.org>2007-10-29 23:11:49 -0500
commit6af7dbcf72b0e95f7c36b17fac88fd2658c2a8e4 (patch)
tree192d789d7f42494f8fc081e577e55427ac1f2e60
parentaea45a8b20c786358cfe782b4e3ac37c7d9dbe37 (diff)
pacman/query.c: add missing free()
Signed-off-by: Dan McGee <dan@archlinux.org>
-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;