fix memory leaks reported by GCC -fanalyzer
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xc_core_arch_map_p2m_tree_rw: fix memory leaktools/ | +2 | 5 replies | |
| 2/2 | backup_ptes: fix leak on realloc failuretools/ | +5 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Juergen Gross |
|---|---|
| 1/2 | R-b R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/2] fix memory leaks reported by GCC -fanalyzer
From: Edwin Török <[email protected]>
Using GCC 12.2.1 with -fanalyzer it has shown some memory leaks:
This is how I enabled -fanalyzer (adding it to CFLAGS for toplevel configure didn't seem to work):
``` CFLAGS += $(call cc-option,$(CC),-fanalyzer) ```
Note that there are more errors shown than fixed here, but they seem to be false positives (which is why this flag cannot, yet, be enabled by default).
Edwin Török (2):
xc_core_arch_map_p2m_tree_rw: fix memory leak
backup_ptes: fix leak on realloc failure
tools/libs/guest/xg_core_x86.c | 2 ++ tools/libs/guest/xg_offline_page.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.1