Skip to content

plugins: Freeing allocated values in hash tables.

Mahmoud Mandour qemu-devel 2 versions – Applied

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

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2plugins/hotblocks: Properly freed the hash table valuescontrib/plugins/hotblocks.c+2 -10 replies
2/2plugins/hotpages: Properly freed the hash table valuescontrib/plugins/hotpages.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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