diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2016-02-29 12:17:08 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2016-02-29 12:17:08 +0000 |
commit | 67c3f4c9f70c40ce0dd12db8804e720c3a0c0c79 (patch) | |
tree | a3220c2c4058a61e04dd53a843726a6dd4266a54 /usr/src/lib/libcontract/common/libcontract.c | |
parent | e5490f12d073ec144d62bc50456b750256cc7c0a (diff) | |
parent | aab83bb83be7342f6cfccaed8d5fe0b2f404855d (diff) | |
download | illumos-joyent-67c3f4c9f70c40ce0dd12db8804e720c3a0c0c79.tar.gz |
[illumos-gate merge]
commit aab83bb83be7342f6cfccaed8d5fe0b2f404855d
6659 nvlist_free(NULL) is a no-op
commit d643a855cbd8c4fb4fe966406fa05dff70673597
6674 sys/isa_defs.h shouldn't unconditionally define _ILP32
commit bcf23f43dc1b73080eeded927585ee86feab40a7
6596 Macro redefined in strtolctype.h
Diffstat (limited to 'usr/src/lib/libcontract/common/libcontract.c')
-rw-r--r-- | usr/src/lib/libcontract/common/libcontract.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/lib/libcontract/common/libcontract.c b/usr/src/lib/libcontract/common/libcontract.c index 2c8afda094..3a3bf4a76a 100644 --- a/usr/src/lib/libcontract/common/libcontract.c +++ b/usr/src/lib/libcontract/common/libcontract.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/ctfs.h> #include <sys/contract.h> #include <string.h> @@ -467,8 +465,7 @@ errout: if (event_buffer) free(event_buffer); if (info) { - if (info->nvl) - nvlist_free(info->nvl); + nvlist_free(info->nvl); free(info); } return (error); @@ -507,8 +504,7 @@ ct_event_free(ct_evthdl_t evthdl) { struct ctlib_event_info *info = evthdl; - if (info->nvl) - nvlist_free(info->nvl); + nvlist_free(info->nvl); free(info); } |