Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6d34618a1d
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.234 kb
#include <terror/gc.h>
#include <stdlib.h>
VALUE
gc_alloc(size_t size)
{
VALUE val = calloc(1, size);
check(val, "Out of memory.");
return val;
error:
return NULL;
}
void
gc_dealloc(VALUE obj)
{
free(obj);
obj = NULL;
}
Jump to Line
Something went wrong with that request. Please try again.