nsm/file.c:536: leaked_handle: Handle variable "fd" going out of scope leaks the handle Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> --- support/nsm/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/support/nsm/file.c b/support/nsm/file.c index 52f5401..0b66f12 100644 --- a/support/nsm/file.c +++ b/support/nsm/file.c @@ -533,6 +533,7 @@ nsm_update_kernel_state(const int state) len = snprintf(buf, sizeof(buf), "%d", state); if (error_check(len, sizeof(buf))) { xlog_warn("Failed to form NSM state number string"); + close(fd); return; } -- 2.20.1