protocol-server: fix memory clearing for new group task logic
protocol-server: fix memory clearing for new group task logic

evanjack2002/server-framework,0140454/server-framework,embedded2016/server-framework