summaryrefslogtreecommitdiff
path: root/ext/repo_rpmdb.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-12-23 14:46:59 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-12-23 14:46:59 +0900
commitde92b8ea19562961f973960c0f8f5aec7f6d9c75 (patch)
tree4d5cf84b1adf5ba72a35b68d28514e202f18b83f /ext/repo_rpmdb.c
parent99023ce80ad7daa0f6462861dac71e17aac694b8 (diff)
downloadlibsolv-upstream/0.7.17.tar.gz
libsolv-upstream/0.7.17.tar.bz2
libsolv-upstream/0.7.17.zip
Imported Upstream version 0.7.17upstream/0.7.17
Diffstat (limited to 'ext/repo_rpmdb.c')
-rw-r--r--ext/repo_rpmdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c
index 67ce81d..d78893e 100644
--- a/ext/repo_rpmdb.c
+++ b/ext/repo_rpmdb.c
@@ -1349,6 +1349,8 @@ freestate(struct rpmdbstate *state)
#ifdef ENABLE_RPMDB
if (state->dbenvopened)
closedbenv(state);
+ if (state->dbpath_allocated)
+ solv_free((char *)state->dbpath);
#endif
if (state->rootdir)
solv_free(state->rootdir);