mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Missing close() in error case.
This commit is contained in:
parent
3daa9f6e53
commit
75e5ea90c2
@ -31,6 +31,7 @@ int id_create(struct id *id)
|
||||
|
||||
if (read(random, id->uuid, len) != len) {
|
||||
log_sys_error("read", "id_create");
|
||||
close(random);
|
||||
return 0;
|
||||
}
|
||||
close(random);
|
||||
|
Loading…
Reference in New Issue
Block a user