mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:41:41 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue