HomeClusterLabs Projects

Low: libpe_status: avoid memory leak when outputting resources

Description

Low: libpe_status: avoid memory leak when outputting resources

This previously allocated a gchar** but didn't free it if no resource modifiers
were needed. Also, it used a glib free function (g_strfreev()) with memory
allocated with standard functions. Now, a char *[6] is used, and the individual
items freed with free() when needed.

Detected by static analysis

Details

Provenance
kgaillotAuthored on Oct 15 2019, 10:03 PM
Parents
rP9eac77011e66: Low: libcrmcommon: avoid memory leak when IPC compression fails
Branches
Unknown
Tags
Unknown

Event Timeline