plugins: Freeing allocated values in hash tables.
Status from this message: Queued to plugins/next, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | plugins/hotblocks: Properly freed the hash table valuescontrib/ | +2 | 0 replies | |
| 2/2 | plugins/hotpages: Properly freed the hash table valuescontrib/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] plugins: Freeing allocated values in hash tables.
A hash table made using ``g_hash_table_new`` requires manually freeing any dynamically allocated keys/values. The two patches in this series fixes this issue in hotblocks and hotpages plugins.
v1 -> v2: Added a freeing function to hotpages instead of freeing
the sorted list. That's probably better because the sorted list is only made on having ``counts != NULL`` and ``counts`` has a next pointer so essentially at least 2 elements in the list.
Mahmoud Mandour (2):
plugins/hotblocks: Properly freed the hash table values plugins/hotpages: Properly freed the hash table values
contrib/plugins/hotblocks.c | 3 ++- contrib/plugins/hotpages.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1