aboutsummaryrefslogtreecommitdiff
path: root/reaper.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-08-08 19:34:30 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-08-08 19:37:57 +0000
commit7a77958ba20c2b344be5e66e69e2f212a4bbf6b3 (patch)
treecdb8191177f5f9ca69ea7858f9543f36fcbcf616 /reaper.c
parentchangelog: add birger to 'contributers' for the upcoming release (diff)
Convert most dynamic allocations to use functions from xmalloc.h
Diffstat (limited to 'reaper.c')
-rw-r--r--reaper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reaper.c b/reaper.c
index 83db9f47..e74dd6cd 100644
--- a/reaper.c
+++ b/reaper.c
@@ -10,6 +10,7 @@
#define LOG_ENABLE_DBG 0
#include "log.h"
#include "tllist.h"
+#include "xmalloc.h"
struct reaper {
struct fdm *fdm;
@@ -39,7 +40,7 @@ reaper_init(struct fdm *fdm)
return NULL;
}
- struct reaper *reaper = malloc(sizeof(*reaper));
+ struct reaper *reaper = xmalloc(sizeof(*reaper));
*reaper = (struct reaper){
.fdm = fdm,
.fd = fd,