projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c98144d
)
-fix leak
author
Christian Grothoff
<christian@grothoff.org>
Sat, 27 Aug 2016 16:33:40 +0000
(16:33 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 27 Aug 2016 16:33:40 +0000
(16:33 +0000)
src/psyc/psyc_api.c
patch
|
blob
|
history
diff --git
a/src/psyc/psyc_api.c
b/src/psyc/psyc_api.c
index ca72a44c03016edef876f0c6ee6d9433a368d95e..f74930237539514746d7d57cee94b7bcb9f083eb 100644
(file)
--- a/
src/psyc/psyc_api.c
+++ b/
src/psyc/psyc_api.c
@@
-720,10
+720,10
@@
GNUNET_PSYC_master_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_PSYC_MessagePartCallback message_part_cb,
void *cls)
{
- struct GNUNET_PSYC_Master *mst = GNUNET_
malloc (sizeof (*mst)
);
+ struct GNUNET_PSYC_Master *mst = GNUNET_
new (struct GNUNET_PSYC_Master
);
struct GNUNET_PSYC_Channel *chn = &mst->chn;
+ struct MasterStartRequest *req;
- struct MasterStartRequest *req = GNUNET_malloc (sizeof (*req));
chn->connect_env = GNUNET_MQ_msg (req,
GNUNET_MESSAGE_TYPE_PSYC_MASTER_START);
req->channel_key = *channel_key;