From 6bd15247f91284f7d7869367eafa9064d7f2f727 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 6 Jul 2014 15:41:56 +0200 Subject: [PATCH] Fix memory leak in EmergeManager --- src/emerge.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emerge.cpp b/src/emerge.cpp index 443d7038..95a09321 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -156,6 +156,11 @@ EmergeManager::~EmergeManager() { mglist.clear(); delete biomedef; + + if (params.sparams) { + delete params.sparams; + params.sparams = NULL; + } } -- 2.30.2