diff options
author | Steve Grubb <sgrubb@redhat.com> | 2021-05-14 10:00:42 -0400 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-05-14 17:05:11 -0700 |
commit | ca769001a80d713050e071ca08c16fc4bde7643d (patch) | |
tree | 415007d9908cc569e38af16ebc2f1c8a3fe990fc /src/main.c | |
parent | 8d61942f273e8579591b9b72fe6fe1bb3bedb672 (diff) | |
download | bluez-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.c | 1 |
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) |