Page MenuHomeClusterLabs Projects

Evaluate replacing pcmk__realloc() with GLib functions
Open, WishlistPublic

Description

Cppcheck doesn't like pcmk__realloc(), and GLib can handle reallocation for common data structures like strings and lists. pcmk__realloc() works fine, but if it turns out to be simple to use GLib instead of expanding our own buffers, why not?

Event Timeline

nrwahl2 triaged this task as Wishlist priority.Feb 6 2024, 4:19 PM
nrwahl2 created this task.
nrwahl2 created this object with edit policy "Restricted Project (Project)".

cppcheck appears to be fine with pcmk__realloc for me, but I would still be all for investigating removing it in favor of someone else's code.