summaryrefslogtreecommitdiff
path: root/ipacm/src/IPACM_Wlan.cpp
diff options
context:
space:
mode:
authorSkylar Chang <chiaweic@codeaurora.org>2015-09-09 09:57:57 -0700
committerSkylar Chang <chiaweic@codeaurora.org>2015-09-09 18:55:44 -0700
commit5a8c0fd531bbabdc4dce99b4d850f9d9f735ff36 (patch)
treeb8ff3e20b2de26b024934ed75f70ea8ec506194a /ipacm/src/IPACM_Wlan.cpp
parentb707257475419ad70852346cd4be4fb541421c70 (diff)
downloadipacfg-mgr-5a8c0fd531bbabdc4dce99b4d850f9d9f735ff36.tar.gz
IPACM: fix memory leak during client connect
During client connect, after modifying filter rule memory should be freed. Change-Id: Iead08731ba1ea85b7274e13e53233ee866bf1dda
Diffstat (limited to 'ipacm/src/IPACM_Wlan.cpp')
-rw-r--r--ipacm/src/IPACM_Wlan.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/ipacm/src/IPACM_Wlan.cpp b/ipacm/src/IPACM_Wlan.cpp
index f51c0c3..075da13 100644
--- a/ipacm/src/IPACM_Wlan.cpp
+++ b/ipacm/src/IPACM_Wlan.cpp
@@ -3767,10 +3767,7 @@ int IPACM_Wlan::eth_bridge_add_lan_client_flt_rule(uint8_t* mac, ipa_ip_type ipt
}
fail:
- if(pFilteringTable == NULL)
- {
- free(pFilteringTable);
- }
+ free(pFilteringTable);
return res;
}
@@ -4041,10 +4038,7 @@ int IPACM_Wlan::eth_bridge_add_self_client_flt_rule(uint8_t* mac, ipa_ip_type ip
}
fail:
- if(pFilteringTable == NULL)
- {
- free(pFilteringTable);
- }
+ free(pFilteringTable);
return res;
}
@@ -5369,9 +5363,6 @@ int IPACM_Wlan::eth_bridge_modify_wlan_client_flt_rule(uint8_t* mac, eth_bridge_
goto fail;
}
fail:
- if(pFilteringTable == NULL)
- {
- free(pFilteringTable);
- }
+ free(pFilteringTable);
return res;
}