mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 03:55:20 +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)
|
||||
rl_callback_handler_install(vtysh_prompt(), vtysh_rl_callback);
|
||||
|
||||
free(line_read);
|
||||
}
|
||||
|
||||
/* SIGTSTP handler. This function care user's ^Z input. */
|
||||
|
Loading…
Reference in New Issue
Block a user