zpool.state and zpool.perdisk.state are strings which zpool_state_to_name()
gets from gettext, they do not need to be dupped when returned to the
callers of the pmda's fetch callback, they only need to be persistent
enough to be returned to the caller where they will be copied into
pmResult.
Plug a memory leak in Solaris PMDA
zpool.state and zpool.perdisk.state are strings which zpool_state_to_name()
gets from gettext, they do not need to be dupped when returned to the
callers of the pmda's fetch callback, they only need to be persistent
enough to be returned to the caller where they will be copied into
pmResult.