HomeClusterLabs Projects

Fix: crmd: check for errors when searching for CIB daemon's load file

Description

Fix: crmd: check for errors when searching for CIB daemon's load file

find_cib_loadfile() returns NULL if cib is being run via valgrind. Previously,
this value was not checked (ironically, triggering a valgrind warning about
unaddressable bytes).

This revision checks the result for NULL, and additionally optimizes the
function to iterate through /proc a bit faster.

Details

Provenance
kgaillotAuthored on Jul 10 2015, 4:32 PM
Parents
rP523aa9a1b84e: Fix: libcib,libfencing,tools: memory leaks from xmlGetNodePath()
Branches
Unknown
Tags
Unknown

Event Timeline