Skip to content

Commit

Permalink
[Linux] Fix memory leaks in the BLE module (#28067)
Browse files Browse the repository at this point in the history
* Do not duplicate string when passing to const argument

* Convert NULL to nullptr

* Do not duplicate string when adding to mpConnMap

* Free buffer used for reading characteristic data

* Clear stack-allocated dict variants

* Fix memory leak when creating unix FD list

* Change new to g_new to be consistent with the rest of the code

* Replace stack-alloc variant dict with heap-alloc

In our case, it's easier to handle memory free for heap-allocated variant dicts.

* Free memory returned by g_variant_dict_lookup_value
  • Loading branch information
arkq authored and pull[bot] committed Oct 19, 2023
1 parent 14197c1 commit d167894
Showing 1 changed file with 98 additions and 87 deletions.
Loading

0 comments on commit d167894

Please sign in to comment.