add_fileconflict: free memory on error
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
52d2ff648d
commit
88eedef6c6
1 changed files with 1 additions and 0 deletions
|
@ -288,6 +288,7 @@ static alpm_list_t *add_fileconflict(alpm_handle_t *handle,
|
||||||
return conflicts;
|
return conflicts;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
alpm_fileconflict_free(conflict);
|
||||||
RET_ERR(handle, ALPM_ERR_MEMORY, conflicts);
|
RET_ERR(handle, ALPM_ERR_MEMORY, conflicts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue