mirror of
https://github.com/opnsense/src.git
synced 2026-03-17 08:02:24 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue