[libvirt] openvzGetType() leaks memory

Matthias Bolte matthias.bolte at googlemail.com
Sat Aug 1 09:22:40 UTC 2009


All other drivers return a static string from their getType() function
(conforming with the API documentation), but the OpenVZ driver does
strdup() a string, generating a leak:

static const char *openvzGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
    return strdup("OpenVZ");
}

Matthias




More information about the libvir-list mailing list