Merge pull request #869 from robertbaldyga/volume-fix-memleak

Fix refcnt memleak in ocf_volume
This commit is contained in:
Robert Baldyga 2025-03-25 08:36:57 +01:00 committed by GitHub
commit 28c6790f94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,8 +205,6 @@ void ocf_volume_move(ocf_volume_t volume, ocf_volume_t from)
volume->priv = from->priv;
volume->cache = from->cache;
volume->features = from->features;
env_refcnt_init(&volume->refcnt, "volume", sizeof("volume"));
env_refcnt_freeze(&volume->refcnt);
/*
* Deinitialize original volume without freeing resources.