diff --git a/lib/uuid/uuid.c b/lib/uuid/uuid.c index 75cd747bf..e6f09e8dd 100644 --- a/lib/uuid/uuid.c +++ b/lib/uuid/uuid.c @@ -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);