X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=imago%2Fsrc%2Fftmodule.c;fp=imago%2Fsrc%2Fftmodule.c;h=065d6e86bbdfc34698d1d4e60dafd41ff86f1ebb;hb=56d0fddeeaee0ecb56cddc09db44bb87bf011314;hp=b52d010c211df53ecc64fec968502defdcddae27;hpb=773592751bbdef2f304725b24f620f89c9d4a5eb;p=dos_imgv
diff --git a/imago/src/ftmodule.c b/imago/src/ftmodule.c
index b52d010..065d6e8 100644
--- a/imago/src/ftmodule.c
+++ b/imago/src/ftmodule.c
@@ -19,6 +19,7 @@ along with this program. If not, see .
#include
#include
#include "ftmodule.h"
+#include "chkalloc.h"
static struct list_node {
struct ftype_module *module;
@@ -34,7 +35,7 @@ int img_register_module(struct ftype_module *mod)
{
struct list_node *node;
- if(!(node = malloc(sizeof *node))) {
+ if(!(node = chk_malloc(sizeof *node))) {
return -1;
}