Merge "Fix a memory leak" am: cb1b68f9b3
am: 894337ee0b
am: 2a7d34014a
Change-Id: I2b763775555659f77e969f1d4d5bc73363afc53b
This commit is contained in:
commit
54abd1d82f
1 changed files with 1 additions and 0 deletions
|
@ -296,6 +296,7 @@ int service_to_fd(const char* name, const atransport* transport) {
|
|||
void* arg = strdup(name + 7);
|
||||
if (arg == NULL) return -1;
|
||||
ret = create_service_thread("reboot", reboot_service, arg);
|
||||
if (ret < 0) free(arg);
|
||||
} else if(!strncmp(name, "root:", 5)) {
|
||||
ret = create_service_thread("root", restart_root_service, nullptr);
|
||||
} else if(!strncmp(name, "unroot:", 7)) {
|
||||
|
|
Loading…
Reference in a new issue