yaffs: Remove a whole lot of function wrappers and forward declarations
[yaffs2.git] / direct / basic-test / yramsim.c
index 9b50a39a76d517bff8c8414274453a8ddcde7f8f..1fbf5fe215f02958e16d47f52cb1ffde3eb852a2 100644 (file)
@@ -260,11 +260,11 @@ struct yaffs_dev *yramsim_CreateRamSim(const YCHAR *name,
 
        sim = yramsim_alloc_sim_data(devId, nBlocks);
 
-       g = YMALLOC(sizeof(ynandif_Geometry));
+       g = malloc(sizeof(ynandif_Geometry));
 
        if(!sim || !g){
                if(g)
-                       YFREE(g);
+                       free(g);
                return NULL;
        }