Skip to content
Commit 3fcfaa12 authored by Manojkiran Eda's avatar Manojkiran Eda Committed by ManojKiran Eda
Browse files

Fix softoff crash due to double free corruption



In its present condition, the instance database gets initialized
within the hostSoftOff function. Consequently, once the function
execution is complete, the database goes out of scope, triggering
the invocation of the instanceDb destructor. This, in turn,
prematurely destroys the instance database in the middle of the
softpoweroff flow, resulting in a double free corruption.

Tested:
After implementing the fix, softoff was tested to ensure it does
not crash.

Change-Id: I251201b06864a8a5273bfaa23468a06ad678763a
Signed-off-by: default avatarManojkiran Eda <manojkiran.eda@gmail.com>
parent 5ef5b340
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment