diff options
author | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-23 13:56:09 +0000 |
---|---|---|
committer | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2016-09-23 13:56:09 +0000 |
commit | 6bb90e3cc8a4ec46efe48bae9de990838223b6fb (patch) | |
tree | ea0579611cff7ebd2702aa341814ba93d05d4aa3 /usr.sbin/switchd/imsg_util.c | |
parent | 3e26a79b63e74cb0a24274673926110f4c3bec4f (diff) |
It is ok to call free() on NULL pointers.
ok reyk@
Diffstat (limited to 'usr.sbin/switchd/imsg_util.c')
-rw-r--r-- | usr.sbin/switchd/imsg_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/switchd/imsg_util.c b/usr.sbin/switchd/imsg_util.c index 0b034a079ba..4d3a0b4720c 100644 --- a/usr.sbin/switchd/imsg_util.c +++ b/usr.sbin/switchd/imsg_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg_util.c,v 1.2 2016/08/30 13:39:53 deraadt Exp $ */ +/* $OpenBSD: imsg_util.c,v 1.3 2016/09/23 13:56:08 rzalamena Exp $ */ /* * Copyright (c) 2010-2016 Reyk Floeter <reyk@openbsd.org> @@ -118,8 +118,8 @@ ibuf_release(struct ibuf *buf) { if (buf == NULL) return; - if (buf->buf != NULL) - free(buf->buf); + + free(buf->buf); free(buf); } |