projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- add 2s for new state, reduce buffer
[oweals/gnunet.git]
/
src
/
arm
/
test_exponential_backoff.c
diff --git
a/src/arm/test_exponential_backoff.c
b/src/arm/test_exponential_backoff.c
index 0561c3ea83b20909a8eced836f537096b447de1a..7a552cc7c7f96c8bd383df908b675ecba3565312 100644
(file)
--- a/
src/arm/test_exponential_backoff.c
+++ b/
src/arm/test_exponential_backoff.c
@@
-214,7
+214,7
@@
do_nothing_service_shutdown (struct GNUNET_CLIENT_Connection *sock,
{
struct ShutdownContext *shutdown_ctx;
- shutdown_ctx = GNUNET_
malloc (sizeof (struct ShutdownContext)
);
+ shutdown_ctx = GNUNET_
new (struct ShutdownContext
);
shutdown_ctx->cont = cont;
shutdown_ctx->cont_cls = cont_cls;
shutdown_ctx->sock = sock;