mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
Bugfix
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:
parent
fc96473f98
commit
00e5dc311f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user