mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 07:26:05 +00:00
mgmtd: Fix fd leak.
Close fd before returning to avoid leaks. Signed-off-by: Loganaden Velvindron <logan@cyberstorm.mu>
This commit is contained in:
parent
6927446645
commit
b69017f455
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user