Merge pull request #13094 from loganaden/master

mgmtd: Fix fd leak.
This commit is contained in:
Donald Sharp 2023-03-24 08:41:11 -04:00 committed by GitHub
commit 970bbd8b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,7 @@ static bool mgmt_history_read_cmt_record_index(void)
} else {
zlog_err("More records found in index file %s",
MGMTD_COMMIT_INDEX_FILE_NAME);
fclose(fp);
return false;
}