mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 16:45:06 -05:00
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",
|
||||
api.ldapai_vendor_name, major, minor, patch);
|
||||
src[i++] = ldap_buf;
|
||||
ldap_memfree(api.ldapai_vendor_name);
|
||||
ber_memvfree((void **)api.ldapai_extensions);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user