diff options
| author | Jesper Hansson <jesper.hansson@sonymobile.com> | 2012-04-27 13:54:27 +0200 |
|---|---|---|
| committer | Johan Redestig <johan.redestig@sonymobile.com> | 2014-11-24 13:35:48 +0100 |
| commit | a9d791f48e3472400ffad73dca88c28fb2f7aaa7 (patch) | |
| tree | a220de8a544047550cd90dba000432b242bc0812 /server/BandwidthController.cpp | |
| parent | ce0b69e25ae35f93ff7253855bf8a38c7fbf0232 (diff) | |
Plug some leaks
Change-Id: I4268ea32cfb0ebd6ce5711e30865750dffa94e92
Diffstat (limited to 'server/BandwidthController.cpp')
| -rw-r--r-- | server/BandwidthController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/BandwidthController.cpp b/server/BandwidthController.cpp index e1db6806..2fe249d0 100644 --- a/server/BandwidthController.cpp +++ b/server/BandwidthController.cpp @@ -1100,12 +1100,12 @@ int BandwidthController::removeCostlyAlert(const char *costName, int64_t *alertB return -1; } - asprintf(&alertName, "%sAlert", costName); if (!*alertBytes) { ALOGE("No prior alert set for %s alert", costName); return -1; } + asprintf(&alertName, "%sAlert", costName); asprintf(&chainName, "bw_costly_%s", costName); asprintf(&alertQuotaCmd, ALERT_IPT_TEMPLATE, "-D", chainName, *alertBytes, alertName); res |= runIpxtablesCmd(alertQuotaCmd, IptJumpNoAdd); |
