1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Missing close() in error case.

This commit is contained in:
Alasdair Kergon 2002-01-07 22:25:57 +00:00
parent 3daa9f6e53
commit 75e5ea90c2

View File

@ -31,6 +31,7 @@ int id_create(struct id *id)
if (read(random, id->uuid, len) != len) { if (read(random, id->uuid, len) != len) {
log_sys_error("read", "id_create"); log_sys_error("read", "id_create");
close(random);
return 0; return 0;
} }
close(random); close(random);