]> diplodocus.org Git - nmh/commitdiff
Replace `if (p) free(p)' with `mh_xfree(p)'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 23:18:32 +0000 (00:18 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 21 Oct 2016 23:18:32 +0000 (00:18 +0100)
sbr/arglist.c

index 68a26a2..e6f079e 100644 (file)
@@ -133,8 +133,7 @@ arglist_free(char *command, char **argvarray)
 {
     int i;
 
-    if (command != NULL)
-       free(command);
+    mh_xfree(command);
 
     if (argvarray != NULL) {
        for (i = 0; argvarray[i] != NULL; i++)