blob: 9c856d59f56e5042fb1af677efa33a3ee4617145 [file] [log] [blame]
Arnaldo Carvalho de Melo7f7c5362019-07-04 11:32:27 -03001// SPDX-License-Identifier: LGPL-2.1
2
3#include <stdlib.h>
4#include <linux/zalloc.h>
5
6void *zalloc(size_t size)
7{
8 return calloc(1, size);
9}
10
11void __zfree(void **ptr)
12{
13 free(*ptr);
14 *ptr = NULL;
15}