From 5975becf2bc51192ca8379a5d4a619b4229d5ed3 Mon Sep 17 00:00:00 2001 From: Tanuj Tekriwal Date: Thu, 19 Sep 2024 07:55:32 +0000 Subject: [PATCH] Fixing Coverity issue for log_capture Tests Done: Build and boot Tracked-On: OAM-125083 Signed-off-by: Tanuj Tekriwal --- crashlog/crashutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crashlog/crashutils.c b/crashlog/crashutils.c index 37b6b7c..dafcdb0 100755 --- a/crashlog/crashutils.c +++ b/crashlog/crashutils.c @@ -169,6 +169,7 @@ static int find_system_last_kmsg(char source[], int source_length) { if (source == NULL) { LOGE("source is NULL.\n"); + closedir(dir); return file_exist; } if (dir == NULL) {