forked from enlightenment/efl
eina - eina_file - fix leak of fd is fd is 0
this should fix CID 1039181
This commit is contained in:
parent
5d6e30fae0
commit
e4b029da0b
|
@ -884,7 +884,7 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (d > 0) close(d);
|
if (d >= 0) close(d);
|
||||||
close(s);
|
close(s);
|
||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
|
|
Loading…
Reference in New Issue