[PATCH 3/3] fix memory leak in ppp_auth
Kristen Carlson Accardi
kristen at linux.intel.com
Wed Mar 24 10:13:25 PDT 2010
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
More information about the ofono
mailing list