Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 894337ee authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "Fix a memory leak"

am: cb1b68f9

Change-Id: Ia7a5fbc737d702615499bccd6492aac9ce3d0ce3
parents 55044777 cb1b68f9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {