mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -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));
|
str = calloc(PATH_MAX+1, sizeof(char));
|
||||||
if(!str) {
|
if(!str) {
|
||||||
/* null hmmm.... */
|
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!realpath(file, str)) {
|
if(!realpath(file, str)) {
|
||||||
|
free(str);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return(str);
|
return(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int query_fileowner(alpm_list_t *targets)
|
static int query_fileowner(alpm_list_t *targets)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user