HomeClusterLabs Projects

Refactor: pacemaker-based: make string ownership clearer

Description

Refactor: pacemaker-based: make string ownership clearer

Coverity mistakenly thought p_conv.appdata_ptr was leaked because
Pacemaker didn't free it. However it was set as the response by
construct_pam_passwd() and would be freed by its caller (a PAM module).

Make the ownership clearer by doing the copy in construct_pam_passwd().

Details

Provenance
kgaillotAuthored on Tue, Sep 17, 3:47 PM
Parents
rP0bdaa8b3a2a7: Refactor: pacemaker-based: best practices for construct_pam_passwd()
Branches
Unknown
Tags
Unknown