summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-07-20 14:52:16 +0200
committerDan McGee <dan@archlinux.org>2009-07-20 23:37:45 +0200
commit60b6cde637338657e72312aef1ff1d04314df745 (patch)
tree2570113597f7070eee3aa9365a9a8acd00c5db20 /lib/libalpm/handle.c
parent5d15bb68f7b6b3e25be286ddf7a615553a173b8f (diff)
downloadpacman-60b6cde637338657e72312aef1ff1d04314df745.tar.gz
pacman-60b6cde637338657e72312aef1ff1d04314df745.tar.xz
Fix 2 minor memleaks
Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 4d341a8b..34115b38 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -287,6 +287,7 @@ int SYMEXPORT alpm_option_set_root(const char *root)
realroot = calloc(PATH_MAX+1, sizeof(char));
if(!realpath(root, realroot)) {
+ FREE(realroot);
pm_errno = PM_ERR_NOT_A_DIR;
return(-1);
}