diff options
Diffstat (limited to 'server/PppController.cpp')
| -rw-r--r-- | server/PppController.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/PppController.cpp b/server/PppController.cpp index 6b54c31b..581b9c60 100644 --- a/server/PppController.cpp +++ b/server/PppController.cpp @@ -85,6 +85,8 @@ int PppController::attachPppd(const char *tty, struct in_addr local, char *lr; asprintf(&lr, "%s:%s", l, r); + free(l); + free(r); snprintf(dev, sizeof(dev), "/dev/%s", tty); @@ -94,6 +96,9 @@ int PppController::attachPppd(const char *tty, struct in_addr local, lr, "ms-dns", d1, "ms-dns", d2, "lcp-max-configure", "99999", (char *) NULL)) { ALOGE("execl failed (%s)", strerror(errno)); } + free(lr); + free(d1); + free(d2); ALOGE("Should never get here!"); return 0; } else { |
