HomeClusterLabs Projects
Diffusion Booth f37b7d5e4988

attr: Fix glib hash_table != NULL assert

Description

attr: Fix glib hash_table != NULL assert

Ticket attribute hash table is created only when some attribute exists.
If it doesn't, list and get operations were producing glib assert.

Patch adds check in attr_get and attr_list so hash table is used only
when it has been initialized.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Oct 5 2023, 3:33 AM
Parents
rB265df7c53d73: Merge pull request #124 from jfriesse/fix-attr-memleak
Branches
Unknown
Tags
Unknown

Event Timeline