sw-collector: Unmap history file on failure to instantiate extractor
This commit is contained in:
parent
42353849cb
commit
26d18f4efb
|
@ -249,6 +249,7 @@ static int extract_history(sw_collector_db_t *db)
|
||||||
history = sw_collector_history_create(db, 1);
|
history = sw_collector_history_create(db, 1);
|
||||||
if (!history)
|
if (!history)
|
||||||
{
|
{
|
||||||
|
chunk_unmap(h);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue