summaryrefslogtreecommitdiff
path: root/usr.bin/mg/dired.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-11 20:21:24 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-11 20:21:24 +0000
commitcb76330f1626a0c2bf7bb7a0405a3d8fab8362dd (patch)
tree40b2f76790e147f87063a377ea5a02a0d41bf9a0 /usr.bin/mg/dired.c
parent8d0bb110c71d61c255c2ee602da6172b2dc61eda (diff)
Remove NULL-checks before free().
Diffstat (limited to 'usr.bin/mg/dired.c')
-rw-r--r--usr.bin/mg/dired.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c
index b17186e8934..668bb325a2c 100644
--- a/usr.bin/mg/dired.c
+++ b/usr.bin/mg/dired.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dired.c,v 1.80 2015/10/29 19:46:47 lum Exp $ */
+/* $OpenBSD: dired.c,v 1.81 2015/12/11 20:21:23 mmcc Exp $ */
/* This file is in the public domain. */
@@ -673,8 +673,7 @@ out:
close(fds[1]);
if (infd != -1)
close(infd);
- if (argv != NULL)
- free(argv);
+ free(argv);
return ret;
}