diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-21 21:37:10 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-21 21:37:10 +0000 |
commit | 8dfc8e2829d55372bfd6a93fa4961ebd09fc3dff (patch) | |
tree | 14f087ecfa5255fc6fc741f77b7bc7575a9ce02a | |
parent | 59ae3c06e54024cc076d378123842b4b6cd2f43a (diff) |
remove NULL-check before free()
-rw-r--r-- | usr.sbin/memconfig/memconfig.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/memconfig/memconfig.c b/usr.sbin/memconfig/memconfig.c index 0155827c3b0..5f825c0872b 100644 --- a/usr.sbin/memconfig/memconfig.c +++ b/usr.sbin/memconfig/memconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: memconfig.c,v 1.16 2014/04/12 15:57:50 jsg Exp $ */ +/* $OpenBSD: memconfig.c,v 1.17 2015/12/21 21:37:09 mmcc Exp $ */ /*- * Copyright (c) 1999 Michael Smith <msmith@freebsd.org> @@ -194,8 +194,7 @@ listfunc(int memfd, int argc, char *argv[]) printf("\n"); } free(mrd); - if (owner) - free(owner); + free(owner); } static void |