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:
parent
0402a13914
commit
a9c232319f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user