mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
cleanup: release resources for rbdImages objects after use
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
dc990037a5
commit
b5d0524c39
@ -46,7 +46,10 @@ import (
|
||||
func (rv *rbdVolume) checkCloneImage(ctx context.Context, parentVol *rbdVolume) (bool, error) {
|
||||
// generate temp cloned volume
|
||||
tempClone := rv.generateTempClone()
|
||||
defer tempClone.Destroy()
|
||||
|
||||
snap := &rbdSnapshot{}
|
||||
defer snap.Destroy()
|
||||
snap.RbdSnapName = rv.RbdImageName
|
||||
snap.Pool = rv.Pool
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user