Merge pull request #318 from l-mb/master

Fix small memory leak in legacy plugin code
Fix: legacy: Handle messages in the common way in the plugin dispatch function by default
Merge pull request #316 from gao-yan/plugin-dispatch

Fix: legacy: Handle messages in the common way in the plugin dispatch function by default
plugin: fix memory leak in send_cluster_text