Imported Upstream version 0.7.17
[platform/upstream/libsolv.git] / ext / repo_rpmdb.c
index 67ce81d..d78893e 100644 (file)
@@ -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);