aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2018-09-13 10:10:55 +0200
committerDaniel Gustafsson <daniel@yesql.se>2018-09-13 10:10:55 +0200
commit3c5ee47fc206036283bdbcbe4588464bc9a7a5ae (patch)
tree26a71fb50a3e3b257172cbf386ff5ef1421dc028 /lib
parenta9882b90f82b4bac7b8eff617782a1b59c035a8a (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/krb5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index 8b5a24720..46c56085b 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -265,6 +265,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
result = CURLE_OUT_OF_MEMORY;
free(p);
+ free(cmd);
if(result) {
ret = -2;