HomeFreeBSD

ctladm: fix resource leak

Description

ctladm: fix resource leak

The str variable in cctl_nvlist_end_element() does not get free()'d when
converted to an integer value. (name is "trtype")

Reported by: Coverity Scan
Coverity ID: 1545039
Sponsored by: The FreeBSD Foundation

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1237

Details

Provenance
khorben_defora.orgAuthored on May 15 2024, 6:13 PM
impCommitted on May 16 2024, 5:22 PM
Parents
rG1787871a6627: bhyve: avoid resource leak
Branches
Unknown
Tags
Unknown