]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix the undefined xfree issue
authorMichael Mullin <masmullin@gmail.com>
Sat, 3 Oct 2020 18:19:46 +0000 (14:19 -0400)
committerMichael Mullin <masmullin@gmail.com>
Sat, 3 Oct 2020 18:19:46 +0000 (14:19 -0400)
src/gpasswd.c

index 9331d30c1db20e00c20d41c652a98e788984811f..16fc124d71bb5beb2807fb42702431d2502f515d 100644 (file)
@@ -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
  */