Plug memory leak in dsl_check_snap_cb()
This was unnoticed because the function is very rarely used. MFC after: 3 days
This commit is contained in:
parent
f11731eba1
commit
87a5cb4650
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248493
@ -919,7 +919,8 @@ dsl_check_snap_cb(const char *name, void *arg)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user