mirror of https://github.com/moparisthebest/curl
version: free the openldap info correctly
... to avoid memory leaks.
Follow-up to: bf0feae776
Closes #7061
This commit is contained in:
parent
19291f7fb4
commit
acf91ff75e
|
@ -267,6 +267,8 @@ char *curl_version(void)
|
||||||
msnprintf(ldap_buf, sizeof(ldap_buf), "%s/%u.%u.%u",
|
msnprintf(ldap_buf, sizeof(ldap_buf), "%s/%u.%u.%u",
|
||||||
api.ldapai_vendor_name, major, minor, patch);
|
api.ldapai_vendor_name, major, minor, patch);
|
||||||
src[i++] = ldap_buf;
|
src[i++] = ldap_buf;
|
||||||
|
ldap_memfree(api.ldapai_vendor_name);
|
||||||
|
ber_memvfree((void **)api.ldapai_extensions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue