From a9c232319f28376f88ac624ac132413ec408b784 Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Tue, 16 Oct 2018 14:48:00 +0530 Subject: 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 --- xlators/features/trash/src/trash.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit