summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
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);
}