Free input string after handling it.
Reported by Abhijit Lamsoge.
---
 client/input.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/input.c b/client/input.c
index 9705871..e59df8a 100644
--- a/client/input.c
+++ b/client/input.c
@@ -114,6 +114,7 @@ static void rl_handler(char *input)
 
        g_strfreev(args);
        g_free(trim_args);
+       free(input);
 }
 
 static gboolean input_handler(GIOChannel *channel, GIOCondition condition,
-- 
2.1.0

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to