Skip to content

Commit 658bbc4

Browse files
committed
iolog_store_uuid: Fix file descriptor leak on success
Found by the ZeroPath AI Security Engineer <https://zeropath.com>
1 parent 3e474c2 commit 658bbc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

logsrvd/iolog_writer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ iolog_store_uuid(int dfd, struct connection_closure *closure)
726726
"uuid");
727727
goto bad;
728728
}
729+
close(fd);
729730

730731
debug_return_bool(true);
731732
bad:

0 commit comments

Comments
 (0)