28 lines
691 B
Diff
28 lines
691 B
Diff
|
|
From 3c5ee47fc206036283bdbcbe4588464bc9a7a5ae Mon Sep 17 00:00:00 2001
|
||
|
|
From: Daniel Gustafsson <daniel@yesql.se>
|
||
|
|
Date: Thu, 13 Sep 2018 10:10:55 +0200
|
||
|
|
Subject: [PATCH 054/557] 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>
|
||
|
|
---
|
||
|
|
lib/krb5.c | 1 +
|
||
|
|
1 file changed, 1 insertion(+)
|
||
|
|
|
||
|
|
diff --git a/lib/krb5.c b/lib/krb5.c
|
||
|
|
index 8b5a247..46c5608 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;
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|