diff src/blocktype.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 376386a54a3c
children c5d627a313b1
line wrap: on
line diff
--- a/src/blocktype.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/blocktype.c	Mon Aug 13 09:55:28 2007 +0200
@@ -79,7 +79,7 @@
 void *
 Blocktype_newf (int elsize)
 {
-  Blocktype *b = (Blocktype *) xmalloc (sizeof (*b));
+  Blocktype *b = xnew (Blocktype);
   b->elsize = max (elsize, sizeof (void *));
   b->free = 0;
   return (void *) b;