]> git.ipfire.org Git - thirdparty/samba.git/commit
lib:util: Fix resourse leak CID#1412633
authorVinit Agnihotri <vagnihot@redhat.com>
Thu, 14 Aug 2025 10:34:17 +0000 (16:04 +0530)
committerAnoop C S <anoopcs@samba.org>
Fri, 15 Aug 2025 06:19:51 +0000 (06:19 +0000)
commit8e8848280af4be107fc3548d355955b25ff2b7a1
tree8b228559bbb0451c4571c6664fecfff497448338
parentb1e4487521004c650ec1b04b456abd13eed19421
lib:util: Fix resourse leak CID#1412633

Stop using un-needed variable 'handle', this variable is not used
anywhere later.
Also load_module() internally allocates and uses handle, which suffice
for its operation.

This fixes resource leak issue reported by coverity #1412633

Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Fri Aug 15 06:19:51 UTC 2025 on atb-devel-224
lib/util/modules.c