summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mgmtd/mgmt_history.c1
1 files changed, 1 insertions, 0 deletions
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;
}