do not free ops
@@ -770,14 +770,11 @@ int neat_get_stack(neat_ctx* mgr, neat_flow* flow)
return flow->socket->stack;
}
-neat_error_code neat_set_operations(neat_ctx *mgr, neat_flow *flow,
- struct neat_flow_operations *ops)
+neat_error_code
+neat_set_operations(neat_ctx *mgr, neat_flow *flow, struct neat_flow_operations *ops)
{
neat_log(NEAT_LOG_DEBUG, "%s", __func__);
- if( (flow->operations) && (flow->ownedByCore) ) {
- free(flow->operations);
- }
flow->ownedByCore = 0;
flow->operations = ops;
