1 // SPDX-License-Identifier: LGPL-2.1 1 // SPDX-License-Identifier: LGPL-2.1 2 2 3 #include <stdlib.h> 3 #include <stdlib.h> 4 #include <linux/zalloc.h> 4 #include <linux/zalloc.h> 5 5 6 void *zalloc(size_t size) 6 void *zalloc(size_t size) 7 { 7 { 8 return calloc(1, size); 8 return calloc(1, size); 9 } 9 } 10 10 11 void __zfree(void **ptr) 11 void __zfree(void **ptr) 12 { 12 { 13 free(*ptr); 13 free(*ptr); 14 *ptr = NULL; 14 *ptr = NULL; 15 } 15 } 16 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.