Skip to content
Snippets Groups Projects
Commit 2b20309b authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

box-switch_mode: fix the memory leak on reload configuration

Fix the memory leak which would occur when
allocating memory for the "status" string,
output by 'show info'. The allocation was done
on each RELOAD CONFIGURATION, and
old memory was never freed.

Fix: use static memory instead of palloc.
parent 32656c43
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment