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>
This commit is contained in:
Sunny Kumar 2018-10-16 14:48:00 +05:30 committed by Amar Tumballi
parent 0402a13914
commit a9c232319f

View File

@ -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;