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
rP633aa638f767: Refactor: pacemaker-based: best practices for construct_pam_passwd()
Branches
Unknown
Tags
Unknown