summaryrefslogtreecommitdiff
path: root/src/util/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/signal.c')
-rw-r--r--src/util/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/signal.c b/src/util/signal.c
index 5cf50e8dc..b76c658c8 100644
--- a/src/util/signal.c
+++ b/src/util/signal.c
@@ -64,7 +64,7 @@ GNUNET_SIGNAL_handler_install (int signum, GNUNET_SIGNAL_Handler handler)
struct sigaction sig;
#endif
- ret = GNUNET_malloc (sizeof (struct GNUNET_SIGNAL_Context));
+ ret = GNUNET_new (struct GNUNET_SIGNAL_Context);
ret->sig = signum;
ret->method = handler;
#ifndef MINGW