Print this page
patch cleanup
6659 nvlist_free(NULL) is a no-op
*** 21,32 ****
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/ctfs.h>
#include <sys/contract.h>
#include <string.h>
#include <libnvpair.h>
#include <assert.h>
--- 21,30 ----
*** 465,475 ****
errout:
if (event_buffer)
free(event_buffer);
if (info) {
- if (info->nvl)
nvlist_free(info->nvl);
free(info);
}
return (error);
}
--- 463,472 ----
*** 505,515 ****
void
ct_event_free(ct_evthdl_t evthdl)
{
struct ctlib_event_info *info = evthdl;
- if (info->nvl)
nvlist_free(info->nvl);
free(info);
}
--- 502,511 ----