A forgotten malloc() that should have been set to new


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2961 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
leander-256 2010-05-20 00:41:50 +00:00
parent fc96473f98
commit 00e5dc311f

View File

@ -1848,7 +1848,7 @@ std::string p3GroupDistrib::publishMsg(RsDistribMsg *msg, bool personalSign)
RsSerialType *serialType = createSerialiser();
uint32_t size = serialType->size(msg);
void *data = malloc(size);
char *data = new char[size];
serialType->serialise(msg, data, &size);
signedMsg->packet.setBinData(data, size);