diff mbox series

[BlueZ] src/main: Fix double free str

Message ID 20210521170407.180152-1-hj.tedd.an@gmail.com
State New
Headers show
Series [BlueZ] src/main: Fix double free str | expand

Commit Message

Tedd Ho-Jeong An May 21, 2021, 5:04 p.m. UTC
From: Tedd Ho-Jeong An <tedd.an@intel.com>

This patch fixes the double free the string.
The string variable is always freed within its if statement so no need
to free it again in the end.
---
 src/main.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/src/main.c b/src/main.c
index ed19e3e28..57db9c134 100644
--- a/src/main.c
+++ b/src/main.c
@@ -804,7 +804,6 @@  static void parse_config(GKeyFile *config)
 
 	parse_br_config(config);
 	parse_le_config(config);
-	g_free(str);
 }
 
 static void init_defaults(void)