svn commit: r248609 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Martin Matuska
mm at FreeBSD.org
Fri Mar 22 07:30:37 UTC 2013
Author: mm
Date: Fri Mar 22 07:30:36 2013
New Revision: 248609
URL: http://svnweb.freebsd.org/changeset/base/248609
Log:
MFC r248493:
Plug memory leak in dsl_check_snap_cb()
This was unnoticed because the function is very rarely used.
Modified:
stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c Fri Mar 22 01:45:54 2013 (r248608)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c Fri Mar 22 07:30:36 2013 (r248609)
@@ -919,7 +919,8 @@ dsl_check_snap_cb(const char *name, void
char *dsname;
dsname = kmem_asprintf("%s@%s", name, da->snapname);
- VERIFY(nvlist_add_boolean(da->nvl, dsname) == 0);
+ fnvlist_add_boolean(da->nvl, dsname);
+ kmem_free(dsname, strlen(dsname) + 1);
return (0);
}
More information about the svn-src-stable-9
mailing list