summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-11 15:28:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-11 15:28:50 (GMT)
commitf2f54bba0c4db6f5fff3746b40be174617ce693f (patch)
tree1e24f7a99b2c3c26d9fa30a9460fc9a11cf665f2
parent009f00f18ef49295a55e6389c0687d0d767f45b0 (diff)
Fixed a memory leak in the disassembling process.
-rw-r--r--ChangeLog5
-rw-r--r--src/analysis/disass/area.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a72f452..e9fa1ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+17-03-11 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/analysis/disass/area.c:
+ Fix a memory leak in the disassembling process.
+
17-03-08 Cyrille Bagard <nocbos@gmail.com>
* src/analysis/disass/links.c:
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index 74bdfd3..6698bb3 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -1073,6 +1073,12 @@ static void g_area_collector_dispose(GAreaCollector *collector)
static void g_area_collector_finalize(GAreaCollector *collector)
{
+ if (collector->run == (run_task_fc)g_area_collector_do_collect)
+ {
+ if (collector->collected != NULL)
+ free(collector->collected);
+ }
+
G_OBJECT_CLASS(g_area_collector_parent_class)->finalize(G_OBJECT(collector));
}