diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index fe5bd8707..da18917ca 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -3037,10 +3037,9 @@ void RsGenExchange::processRecvdMessages() NxsMsgPendingVect::iterator vit = std::find(mMsgPendingValidate.begin(), mMsgPendingValidate.end(), id); if(vit == mMsgPendingValidate.end()) - { - GxsPendingItem item(msg, id,time(NULL)); - mMsgPendingValidate.push_back(item); - } + mMsgPendingValidate.push_back(GxsPendingItem(msg, id,time(NULL))); + else + delete msg ; } }