fix memory leak in ppp_auth
authorKristen Carlson Accardi <kristen@linux.intel.com>
Wed, 24 Mar 2010 17:13:25 +0000 (10:13 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Mar 2010 20:21:32 +0000 (13:21 -0700)
Free packet after calling ppp_transmit()

gatchat/ppp_auth.c

index 2270436..6c3913e 100644 (file)
@@ -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);