diff options
author | Sheetal Pamecha <spamecha@redhat.com> | 2021-03-05 17:18:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 12:48:38 +0100 |
commit | 43f1a83298d068b010fca94a7f13e7cc566e1b71 (patch) | |
tree | 1d5809385c11d70dac46e8d13f2e7304b3dfa86c | |
parent | f41f7dec05e71809a8b386132d24e6970e1c04d5 (diff) | |
download | glusterfs-43f1a83298d068b010fca94a7f13e7cc566e1b71.tar.gz glusterfs-43f1a83298d068b010fca94a7f13e7cc566e1b71.tar.xz glusterfs-43f1a83298d068b010fca94a7f13e7cc566e1b71.zip |
quiesce: Resource leak coverity fix (#2215)
Fixes CID: 1124725
Updates: #1060
Change-Id: Iced092c5ad1a9445e4c758f09a481501bae7275f
Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
-rw-r--r-- | xlators/features/quiesce/src/quiesce.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/quiesce/src/quiesce.c b/xlators/features/quiesce/src/quiesce.c index 0958d1e07d..2071826fe6 100644 --- a/xlators/features/quiesce/src/quiesce.c +++ b/xlators/features/quiesce/src/quiesce.c @@ -2541,6 +2541,9 @@ init(xlator_t *this) this->private = priv; ret = 0; out: + if (ret) { + GF_FREE(priv); + } return ret; } |