diff options
-rw-r--r-- | xlators/features/trash/src/trash.c | 1 |
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; |