Merge pull request #876 from robertbaldyga/core-front-volume-memleak-fix

Deinitialize core front volume on error handling path
This commit is contained in:
Robert Baldyga 2025-04-02 14:03:22 +02:00 committed by GitHub
commit 9df3c6a97a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,6 +383,11 @@ static void _ocf_mngt_deinit_added_cores(
if (context->cfg.open_cores)
ocf_volume_close(volume);
if (core->front_volume.opened) {
ocf_volume_close(&core->front_volume);
ocf_volume_deinit(&core->front_volume);
}
if (core->seq_cutoff)
ocf_core_seq_cutoff_deinit(core);