mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-04 13:56:12 +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 {
|
} else {
|
||||||
zlog_err("More records found in index file %s",
|
zlog_err("More records found in index file %s",
|
||||||
MGMTD_COMMIT_INDEX_FILE_NAME);
|
MGMTD_COMMIT_INDEX_FILE_NAME);
|
||||||
|
fclose(fp);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user