xfree: move xfree() function to xmalloc.c

Signed-off-by: whzhe <wanghongzhe@huawei.com>
This commit is contained in:
w00475903
2020-10-12 21:29:37 -04:00
parent 18c5c6139d
commit e24700fd5d
3 changed files with 8 additions and 6 deletions

View File

@@ -123,12 +123,6 @@ static void log_gpasswd_success (const char *suffix);
static void log_gpasswd_success_system (/*@null@*/unused void *arg);
static void log_gpasswd_success_group (/*@null@*/unused void *arg);
static void xfree(void* p) {
if (p) {
free(p);
}
}
/*
* usage - display usage message
*/