summaryrefslogtreecommitdiff
path: root/server/BandwidthController.cpp
diff options
context:
space:
mode:
authorJesper Hansson <jesper.hansson@sonymobile.com>2012-04-27 13:54:27 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2014-11-24 13:35:48 +0100
commita9d791f48e3472400ffad73dca88c28fb2f7aaa7 (patch)
treea220de8a544047550cd90dba000432b242bc0812 /server/BandwidthController.cpp
parentce0b69e25ae35f93ff7253855bf8a38c7fbf0232 (diff)
Plug some leaks
Change-Id: I4268ea32cfb0ebd6ce5711e30865750dffa94e92
Diffstat (limited to 'server/BandwidthController.cpp')
-rw-r--r--server/BandwidthController.cpp2
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);