summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-14 16:22:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-15 17:47:35 +0200
commitacf91ff75ea5bcca39c8c1be709d5a712ebb6d64 (patch)
treedafde60899abb9b12e11ffd60af0a926db3b32e2 /lib
parent19291f7fb4cf9810208ac5cd2ae3d3705c273f64 (diff)
downloadcurl-acf91ff75ea5bcca39c8c1be709d5a712ebb6d64.tar.gz
version: free the openldap info correctly
... to avoid memory leaks. Follow-up to: bf0feae7768d9 Closes #7061
Diffstat (limited to 'lib')
-rw-r--r--lib/version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c
index d18cf0e3f..b67b9a466 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -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