From 26d18f4efb4b03b000105d4668081a40861a6a48 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 15 Nov 2017 14:40:10 +0100 Subject: sw-collector: Unmap history file on failure to instantiate extractor --- src/sw-collector/sw-collector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sw-collector/sw-collector.c b/src/sw-collector/sw-collector.c index e673dd657..a42f1068a 100644 --- a/src/sw-collector/sw-collector.c +++ b/src/sw-collector/sw-collector.c @@ -249,6 +249,7 @@ static int extract_history(sw_collector_db_t *db) history = sw_collector_history_create(db, 1); if (!history) { + chunk_unmap(h); return EXIT_FAILURE; } -- cgit v1.2.3