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

Commit 88bfefb8 authored by zhongjie's avatar zhongjie Committed by android-build-merger
Browse files

Merge "Release resources when repeating dlopen-dlcose." am: 88521f62

am: dc877475

* commit 'dc877475':
  Release resources when repeating dlopen-dlcose.
parents 1cb28858 dc877475
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -328,6 +328,7 @@ void IPCThreadState::shutdown()
            delete st;
            pthread_setspecific(gTLS, NULL);
        }
        pthread_key_delete(gTLS);
        gHaveTLS = false;
    }
}
+7 −0
Original line number Diff line number Diff line
@@ -364,6 +364,13 @@ ProcessState::ProcessState()

ProcessState::~ProcessState()
{
    if (mDriverFD >= 0) {
        if (mVMStart != MAP_FAILED) {
            munmap(mVMStart, BINDER_VM_SIZE);
        }
        close(mDriverFD);
    }
    mDriverFD = -1;
}
        
}; // namespace android