message: Deletes allocated char* strings in Lumberjack's pushMessagesOnce() and pushMessagesFully().
diff: @@ -127,6 +127,10 @@ void Lumberjack::pushMessagesOnce()
  m_communicator->push(packedMessagesToBeSent, receivedPackedMessages);
  + if (!m_communicator->isOutputNode()) {
  + delete [] packedMessagesToBeSent;
  + }
  +
  for (int i=0;i<(int)receivedPackedMessages.size(); ++i){
  unpackMessages(receivedPackedMessages[i]);
  delete [] receivedPackedMessages[i];
  @@ -150,6 +154,10 @@ void Lumberjack::pushMessagesFully()
  m_communicator->push(packedMessagesToBeSent, receivedPackedMessages);
  + if (!m_communicator->isOutputNode()) {
  + delete [] packedMessagesToBeSent;
  + }
  +
  for (int i=0; i<(int)receivedPackedMessages.size(); ++i){
  unpackMessages(receivedPackedMessages[i]);
  delete [] receivedPackedMessages[i];
  @@ -173,7 +181,9 @@ const char* Lumberjack::packMessages()
  // <message count><packed message size><packed message><packed message size>...
  if (m_messages.size() == 0) {
  - return "0";
  + char* zero = new char[2];
  + std::strcpy(zero, "0");
  + return zero;
  }
  int totalSize = 1; // include size for null terminator
  