lowmemorykiller: Do proper NULL checks

Pointer other_free is getting dereferenced without
performing proper NULL checks which may cause issue.
Do proper NULL checks at all points before dereferencing
it.

Change-Id: I88515703d64730e42598ab16136dcce4c18b099c
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
1 file changed