mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 05:14:54 +00:00
Merge pull request #12443 from donaldsharp/vtysh_mem_leak_2
vtysh: free memory given to us by readline
This commit is contained in:
commit
90bf4243fb
@ -111,6 +111,8 @@ static void vtysh_rl_callback(char *line_read)
|
|||||||
|
|
||||||
if (!vtysh_loop_exited)
|
if (!vtysh_loop_exited)
|
||||||
rl_callback_handler_install(vtysh_prompt(), vtysh_rl_callback);
|
rl_callback_handler_install(vtysh_prompt(), vtysh_rl_callback);
|
||||||
|
|
||||||
|
free(line_read);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SIGTSTP handler. This function care user's ^Z input. */
|
/* SIGTSTP handler. This function care user's ^Z input. */
|
||||||
|
Loading…
Reference in New Issue
Block a user