aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/alloc_heap.c
blob: 72cd7ad35e27e1b7f897d28f1693d0036d75db72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>

#include "alloc.h"

void *
alloc_heap(void *, void *ptr, size_t, size_t new, size_t)
{
	if (new > 0)
		return realloc(ptr, new);
	free(ptr);
	return nullptr;
}