mirror of
https://github.com/curl/curl.git
synced 2025-09-18 10:02:45 +03:00
krb5: fix memory leak in krb_auth
The FTP command allocated by aprintf() must be freed after usage. Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
a9882b90f8
commit
3c5ee47fc2
|
@ -265,6 +265,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
|
||||||
result = CURLE_OUT_OF_MEMORY;
|
result = CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
free(p);
|
free(p);
|
||||||
|
free(cmd);
|
||||||
|
|
||||||
if(result) {
|
if(result) {
|
||||||
ret = -2;
|
ret = -2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user