check alloc
[dos_imgv] / imago / src / ftmodule.c
index b52d010..065d6e8 100644 (file)
@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include <stdlib.h>
 #include <string.h>
 #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;
        }