diff options
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)) { |
