Create two nrm_msg_destroy functions, depending on whether we received the msg from unpacking a protobuf-encoded zmq message, or created the msg ourselves.
Call the new API everywhere as needed.
Tested with a bunch of valgrind leak checks on live processes, both nrmd and nrmc.
Create two nrm_msg_destroy functions, depending on whether we received the msg from unpacking a protobuf-encoded zmq message, or created the msg ourselves.
Call the new API everywhere as needed.
Tested with a bunch of valgrind leak checks on live processes, both nrmd and nrmc.