Skip to contentSkip to conversation

Fix leak in mesh

PATCH In review Steve Grubb 2 participants 2 messages May 14, 2021 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 Fix leak in mesh

The dir variable needs to be closed before leaving.

---
 mesh/rpl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
mesh/rpl.c +3 -1
index ac0f6b6f2..c53c6fbfd 100644
@@ -143,8 +143,10 @@ static void get_entries(const char *iv_path, struct l_queue *rpl_list)
 		return;
 
 	iv_txt = basename(iv_path);
-	if (sscanf(iv_txt, "%08x", &iv_index) != 1)
+	if (sscanf(iv_txt, "%08x", &iv_index) != 1) {
+		closedir(dir);
 		return;
+	}
 
 	memset(seq_txt, 0, sizeof(seq_txt));
 
Signature · 1 line
2.31.1
#1 lore raw

RE: Fix various memory leaks

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=482521

---Test result---

Test Summary:

CheckPatch                    PASS      1.22 seconds
GitLint                       PASS      0.19 seconds
Prep - Setup ELL              PASS      45.79 seconds
Build - Prep                  PASS      0.13 seconds
Build - Configure             PASS      8.10 seconds
Build - Make                  PASS      194.32 seconds
Make Check                    PASS      8.86 seconds
Make Distcheck                PASS      229.11 seconds
Build w/ext ELL - Configure   PASS      7.75 seconds
Build w/ext ELL - Make        PASS      179.38 seconds

Details
##############################
Test: CheckPatch - PASS
Desc: Run checkpatch.pl script with rule in .checkpatch.conf

##############################
Test: GitLint - PASS
Desc: Run gitlint with rule in .gitlint

##############################
Test: Prep - Setup ELL - PASS
Desc: Clone, build, and install ELL

##############################
Test: Build - Prep - PASS
Desc: Prepare environment for build

##############################
Test: Build - Configure - PASS
Desc: Configure the BlueZ source tree

##############################
Test: Build - Make - PASS
Desc: Build the BlueZ source tree

##############################
Test: Make Check - PASS
Desc: Run 'make check'

##############################
Test: Make Distcheck - PASS
Desc: Run distcheck to check the distribution

##############################
Test: Build w/ext ELL - Configure - PASS
Desc: Configure BlueZ source with '--enable-external-ell' configuration

##############################
Test: Build w/ext ELL - Make - PASS
Desc: Build BlueZ source with '--enable-external-ell' configuration

---
Regards,
Linux Bluetooth