summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2021-05-14 10:00:42 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-05-14 17:05:11 -0700
commitca769001a80d713050e071ca08c16fc4bde7643d (patch)
tree415007d9908cc569e38af16ebc2f1c8a3fe990fc /src/main.c
parent8d61942f273e8579591b9b72fe6fe1bb3bedb672 (diff)
downloadbluez-ca769001a80d713050e071ca08c16fc4bde7643d.tar.gz
core: Fix memory leaks
g_key_file_get_string allocates memory that must be freed. asprintf allocates memory that must be freed.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c32bda7d4..94141b1e4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -795,6 +795,7 @@ static void parse_config(GKeyFile *config)
parse_br_config(config);
parse_le_config(config);
+ g_free(str);
}
static void init_defaults(void)