]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix saving of branches when refining problems
authorMichael Schroeder <mls@suse.de>
Tue, 27 Feb 2018 14:00:31 +0000 (15:00 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 27 Feb 2018 14:00:31 +0000 (15:00 +0100)
This bug caused a mem-leak which led to its discovery...

src/problems.c

index 7933f7c722aee81f96254b1b656f05240d29f2ee..5bd2bf5ac4fccb06f8273711df2f022790338f1d 100644 (file)
@@ -773,7 +773,7 @@ create_solutions(Solver *solv, int probnr, int solidx)
   memset(&solv->problems, 0, sizeof(solv->problems));
 
   /* save branches queue */
-  branches_save = solv->problems;
+  branches_save = solv->branches;
   memset(&solv->branches, 0, sizeof(solv->branches));
 
   /* save decisionq_reason */