GPRS: free a bunch of strings after being used
authorPaul Kocialkowski <contact@paulk.fr>
Sun, 8 Jul 2012 16:02:20 +0000 (18:02 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Sun, 8 Jul 2012 16:02:20 +0000 (18:02 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
gprs.c

diff --git a/gprs.c b/gprs.c
index f2d774c..e716f9f 100644 (file)
--- a/gprs.c
+++ b/gprs.c
@@ -497,6 +497,11 @@ int ipc_gprs_connection_enable(struct ril_gprs_connection *gprs_connection, char
        setup_data_call_response[1] = interface;
        setup_data_call_response[2] = ip;
 
+       free(gateway);
+       free(subnet_mask);
+       free(dns1);
+       free(dns2);
+
        return 0;
 }