Merge pull request #869 from robertbaldyga/volume-fix-memleak
Fix refcnt memleak in ocf_volume
This commit is contained in:
commit
28c6790f94
@ -205,8 +205,6 @@ void ocf_volume_move(ocf_volume_t volume, ocf_volume_t from)
|
|||||||
volume->priv = from->priv;
|
volume->priv = from->priv;
|
||||||
volume->cache = from->cache;
|
volume->cache = from->cache;
|
||||||
volume->features = from->features;
|
volume->features = from->features;
|
||||||
env_refcnt_init(&volume->refcnt, "volume", sizeof("volume"));
|
|
||||||
env_refcnt_freeze(&volume->refcnt);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Deinitialize original volume without freeing resources.
|
* Deinitialize original volume without freeing resources.
|
||||||
|
Loading…
Reference in New Issue
Block a user