From: Michael Mullin Date: Sat, 3 Oct 2020 18:19:46 +0000 (-0400) Subject: Fix the undefined xfree issue X-Git-Tag: v4.9~51^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0407fa881359ea818177685ad48d0fa15d87988f;p=thirdparty%2Fshadow.git Fix the undefined xfree issue --- diff --git a/src/gpasswd.c b/src/gpasswd.c index 9331d30c1..16fc124d7 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -123,6 +123,11 @@ 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 */