mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
12 lines
138 B
C
12 lines
138 B
C
|
|
#include <stdlib.h>
|
||
|
|
#include "common/zfree.h"
|
||
|
|
|
||
|
|
void __zfree(void **ptr)
|
||
|
|
{
|
||
|
|
if (!ptr || !*ptr) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
free(*ptr);
|
||
|
|
*ptr = NULL;
|
||
|
|
}
|