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.
Loading
Please register or sign in to comment