aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-11-15 14:40:10 +0100
committerTobias Brunner <tobias@strongswan.org>2017-11-15 14:40:10 +0100
commit26d18f4efb4b03b000105d4668081a40861a6a48 (patch)
tree19ef831a37151be2998e6c1cb989b3b73e7c4210
parent42353849cb144a5310c7153147d1624b1593ce8d (diff)
downloadstrongswan-26d18f4efb4b03b000105d4668081a40861a6a48.tar.bz2
strongswan-26d18f4efb4b03b000105d4668081a40861a6a48.tar.xz
sw-collector: Unmap history file on failure to instantiate extractor
-rw-r--r--src/sw-collector/sw-collector.c1
1 files changed, 1 insertions, 0 deletions
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;
}