Free packet after calling ppp_transmit()
---
 gatchat/ppp_auth.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c
index 2270436..6c3913e 100644
--- a/gatchat/ppp_auth.c
+++ b/gatchat/ppp_auth.c
@@ -112,6 +112,7 @@ static void chap_process_challenge(struct auth_data *auth, 
guint8 *packet)
 
        /* transmit the packet */
        ppp_transmit(auth->ppp, (guint8 *) ppp_packet, response_length);
+       g_free(ppp_packet);
 
 challenge_out:
        g_checksum_free(checksum);
-- 
1.6.6.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to