Index: sbin/swapon/swapon.c =================================================================== --- sbin/swapon/swapon.c +++ sbin/swapon/swapon.c @@ -681,6 +681,7 @@ if (ofd != NULL) { if (pipe(&pfd[0]) == -1) { warn("%s: pipe", __func__); + free(argv); return (-1); } *ofd = pfd[0];