9f4623c
From ffd5afadb63969f3e6eca781cf2084f5343d2589 Mon Sep 17 00:00:00 2001
9f4623c
From: Jaroslav Mracek <jmracek@redhat.com>
9f4623c
Date: Thu, 8 Nov 2018 20:56:58 +0100
9f4623c
Subject: [PATCH] Fix memory corruption in dnf_context
9f4623c
9f4623c
---
9f4623c
 libdnf/dnf-sack.c | 1 +
9f4623c
 1 file changed, 1 insertion(+)
9f4623c
9f4623c
diff --git a/libdnf/dnf-sack.c b/libdnf/dnf-sack.c
9f4623c
index 66c96c9..ab616d8 100644
9f4623c
--- a/libdnf/dnf-sack.c
9f4623c
+++ b/libdnf/dnf-sack.c
9f4623c
@@ -112,6 +112,7 @@ dnf_sack_finalize(GObject *object)
9f4623c
         HyRepo hrepo = repo->appdata;
9f4623c
         if (!hrepo)
9f4623c
             continue;
9f4623c
+        hrepo->libsolv_repo = NULL;
9f4623c
         hy_repo_free(hrepo);
9f4623c
     }
9f4623c
     g_free(priv->cache_dir);
9f4623c
--
9f4623c
libgit2 0.26.7
9f4623c