Fix: plugin: remove memory leak in legacy code