chiark / gitweb /
NEW etc.: Use NEW in all obvious places
[secnet.git] / md5.c
diff --git a/md5.c b/md5.c
index 343ad8fc893cdd29bbc208c74b7e044f7499d857..69158911eff29cf3540bcae36951e17736d27c27 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -241,7 +241,7 @@ static void *md5_init(void)
 {
     struct MD5Context *ctx;
 
-    ctx=safe_malloc(sizeof(*ctx),"md5_init");
+    NEW(ctx);
     MD5Init(ctx);
 
     return ctx;
@@ -278,7 +278,7 @@ void md5_module(dict_t *dict)
     uint8_t digest[16];
     int i;
 
-    st=safe_malloc(sizeof(*st),"md5_module");
+    NEW(st);
     st->cl.description="md5";
     st->cl.type=CL_HASH;
     st->cl.apply=NULL;