Loading
Fix memory leak in virDomainGetMetadata binding
virDomainGetMetadata returns a dynamically allocated char* that the
caller must free. The JNA binding incorrectly mapped it as String,
which reads the value but never frees the native memory. Changed to
CString, which automatically frees the native memory on toString(),
consistent with other similar bindings (e.g. virDomainGetXMLDesc,
virDomainGetOSType).
Signed-off-by:
Mitsuru Kariya <mitsuru.kariya@nttdata.com>