From 58de5a7ec7f22e4f02748312b20fa0f09798a533 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 11 Jul 2017 01:53:45 +0800 Subject: [PATCH] Prevent a slight chance to crash --- jni/daemon/bootstages.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jni/daemon/bootstages.c b/jni/daemon/bootstages.c index 7205052b0..e4b68f402 100644 --- a/jni/daemon/bootstages.c +++ b/jni/daemon/bootstages.c @@ -768,6 +768,7 @@ void late_start(int client) { // All boot stage done, cleanup everything free(buf); free(buf2); + buf = buf2 = NULL; vec_deep_destroy(&module_list); #ifdef DEBUG