Properly initialize and free destroydata
authorMartin Matuska <martin@matuska.org>
Tue, 21 Aug 2012 21:42:00 +0000 (23:42 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Aug 2012 16:42:21 +0000 (09:42 -0700)
commitcf997d797b49384572c23b6b605bf72bd1415b35
tree31c0d9d46756841ebe1d6ec9f2e38b073c6b8b5c
parent4276c6f576d396b8c902da6cb168e64b2cff233e
Properly initialize and free destroydata

This regression was accidentally introduced by commit
330d06f90d143b41b276796526a66a1c1fff046d due to ZoL
specific code.  The fix is to simply ensure the passed
nvlist is initialized and freed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #876
lib/libzfs/libzfs_dataset.c