summaryrefslogtreecommitdiffstats
path: root/xlators/features/trash/src
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-10-16 14:48:00 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-16 16:21:56 +0000
commita9c232319f28376f88ac624ac132413ec408b784 (patch)
tree143a0ed9a8644f07c3892f97c71acc9a151591cd /xlators/features/trash/src
parent0402a13914084219db3a6f6867117b8757112b24 (diff)
trash : fix high sev coverity issue in trash.c
This patch fixes CID 1288790: RESOURCE_LEAK. updates: bz#789278 Change-Id: I34bb410f1d3027e2d4c21044e87e319360344e04 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/features/trash/src')
-rw-r--r--xlators/features/trash/src/trash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c
index 82cc6d6a8e8..aa546d3394d 100644
--- a/xlators/features/trash/src/trash.c
+++ b/xlators/features/trash/src/trash.c
@@ -194,6 +194,7 @@ store_eliminate_path(char *str, trash_elim_path **eliminate)
if (!trav->path) {
ret = ENOMEM;
gf_log("trash", GF_LOG_DEBUG, "out of memory");
+ GF_FREE(trav);
goto out;
}
trav->next = *eliminate;