mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
pacman/query.c: add missing free()
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
aea45a8b20
commit
6af7dbcf72
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user