drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git] / crypt-mod.c
index 9200ef9..6a93bad 100644 (file)
@@ -11,6 +11,8 @@
 # include "config.h"
 #endif
 
+#include <lib-lib/mem.h>
+
 #include "crypt-mod.h"
 #include "lib/mem.h"
 
@@ -27,7 +29,7 @@ static crypt_module_t modules;
 /* Register a new crypto module. */
 void crypto_module_register (crypt_module_specs_t specs)
 {
-  crypt_module_t module_new = mem_malloc (sizeof (*module_new));
+  crypt_module_t module_new = p_new(struct crypt_module, 1);
 
   module_new->specs = specs;
   module_new->next = modules;