--- src/usr.bin/mkfifo/mkfifo.c 2004/12/28 20:47:40 1.4 +++ src/usr.bin/mkfifo/mkfifo.c 2005/03/02 17:32:06 1.5 @@ -42,6 +42,7 @@ #include #include #include +#include #include #define BASEMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | \ @@ -59,7 +60,7 @@ main(int argc, char **argv) mode_t fifomode; int ch, exitval; - modestr = NULL; + modestr = modep = NULL; while ((ch = getopt(argc, argv, "m:")) != -1) switch(ch) { @@ -94,6 +95,7 @@ main(int argc, char **argv) warn("%s", *argv); exitval = 1; } + free(modep); exit(exitval); }