libglusterfs : fix coverity issue in store.c
This patch fixes CID 1395102 and 1395103. Change-Id: Ia6093dc6a04dce3f523e015cf1d6d4c6bfccc1f6 updates: bz#789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
This commit is contained in:
parent
5b91555a58
commit
7cf6688e9b
@ -424,7 +424,7 @@ out:
|
||||
if (fd >= 0)
|
||||
sys_close(fd);
|
||||
|
||||
if (ret < 0) {
|
||||
if (ret) {
|
||||
GF_FREE(spath);
|
||||
GF_FREE(shandle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user