mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-24 12:44:19 +08:00
core: Fix memory leaks
g_key_file_get_string allocates memory that must be freed. asprintf allocates memory that must be freed.
This commit is contained in:
parent
8d61942f27
commit
ca769001a8
@ -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)
|
||||
|
@ -621,6 +621,7 @@ void bt_shell_prompt_input(const char *label, const char *msg,
|
||||
prompt->user_data = user_data;
|
||||
|
||||
queue_push_tail(data.prompts, prompt);
|
||||
free(str);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user