use xmalloc_unsafe in memory_full
authorBT Templeton <bpt@hcoop.net>
Thu, 28 Jun 2012 01:22:59 +0000 (21:22 -0400)
committerRobin Templeton <robin@terpri.org>
Sat, 18 Apr 2015 22:49:07 +0000 (18:49 -0400)
* src/alloc.c (memory_full): Use `xmalloc_unsafe'.

src/alloc.c

index 7397f73..9bc7339 100644 (file)
@@ -1412,7 +1412,7 @@ memory_full (size_t nbytes)
   bool enough_free_memory = 0;
   if (SPARE_MEMORY < nbytes)
     {
-      void *p = GC_MALLOC (SPARE_MEMORY);
+      void *p = xmalloc_unsafe (SPARE_MEMORY);
       if (p)
        {
          xfree (p);