Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksmbd-tools: fix memory leak in rpc_samr.c
g_array_free() in rpc_samr_destroy() frees the GArray, but not the individual entries that were appended. This diff adds a domain_entry_free() function that will be called for each entry when g_array_free() is called. Found after compiling mountd with --fsanitize=address. Signed-off-by: Marios Makassikis <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
- Loading branch information