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/TetherController.cpp | |
| parent | ce0b69e25ae35f93ff7253855bf8a38c7fbf0232 (diff) | |
Plug some leaks
Change-Id: I4268ea32cfb0ebd6ce5711e30865750dffa94e92
Diffstat (limited to 'server/TetherController.cpp')
| -rw-r--r-- | server/TetherController.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp index fb51c06c..4e1c52f4 100644 --- a/server/TetherController.cpp +++ b/server/TetherController.cpp @@ -158,6 +158,8 @@ int TetherController::startTethering(int num_addrs, struct in_addr* addrs) { char *start = strdup(inet_ntoa(addrs[addrIndex++])); char *end = strdup(inet_ntoa(addrs[addrIndex++])); asprintf(&(args[nextArg++]),"--dhcp-range=%s,%s,1h", start, end); + free(start); + free(end); } if (execv(args[0], args)) { |
