]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
fix memory leak caused by commit 1da9bef8 513/head
authorbanjiuqingshan <63209634+banjiuqingshan@users.noreply.github.com>
Wed, 30 Nov 2022 13:39:37 +0000 (21:39 +0800)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 13:39:37 +0000 (21:39 +0800)
the memory allocated by map_init in solver_disablechoicerules failed to be released in time.

src/rules.c

index 41865cb602d92161173b5688dd2cc5b226dd3bc3..010ed4a9af9762c23e09828f475f4b192fdf3e50 100644 (file)
@@ -3607,6 +3607,7 @@ solver_disablechoicerules(Solver *solv, Rule *r)
       if (p)
        solver_disablerule(solv, r);
     }
+  map_free(&m);
 }
 
 static void