aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libq/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libq/tree.c b/libq/tree.c
index 17f51fca..9dfbe7d3 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -114,7 +114,8 @@ tree_open(const char *sroot, const char *portdir)
return ret;
}
- tree_close(ret);
+ if (repo != NULL)
+ free(repo);
warnf("could not open repository at %s (under root %s)", portdir, sroot);
return NULL;