forked from enlightenment/enlightenment
shot - handle error path and don't double close fd
fix CID 1425213
This commit is contained in:
parent
8f019a4ef7
commit
569146ed6a
|
@ -158,10 +158,7 @@ save_to(const char *file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
free(data);
|
||||||
close(fd);
|
|
||||||
free(data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!thdat) close(fd);
|
if (!thdat) close(fd);
|
||||||
eina_tmpstr_del(path);
|
eina_tmpstr_del(path);
|
||||||
|
|
Loading…
Reference in New Issue