Fix refcnt memleak in ocf_volume
Avoid double initialization of volume refcnt. Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
parent
541fafd492
commit
db134d12e7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user