]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
sw-collector: Unmap history file on failure to instantiate extractor
authorTobias Brunner <tobias@strongswan.org>
Wed, 15 Nov 2017 13:40:10 +0000 (14:40 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 15 Nov 2017 13:40:10 +0000 (14:40 +0100)
src/sw-collector/sw-collector.c

index e673dd6572f755c56640e1c92e81f771f4d1ac0a..a42f1068aed12b0677d69ffd545d6c71aceae99d 100644 (file)
@@ -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;
        }