diff --git a/mgmtd/mgmt_history.c b/mgmtd/mgmt_history.c index 75def3a05e..0e664bc0f1 100644 --- a/mgmtd/mgmt_history.c +++ b/mgmtd/mgmt_history.c @@ -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; }