HomeClusterLabs Projects
Diffusion Booth 153f56cf83f2

Med: list_ticket: fix a memleak in case of buffer too small

Description

Med: list_ticket: fix a memleak in case of buffer too small

Note that such a case seems impossible but there may be other issues
that will add up (see, e.g., reckless snprintf use pointed out with
https://github.com/ClusterLabs/pacemaker/pull/810, something should
eventually be reflected here as well).

Discovered-by: static analysis/Coverity

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on May 13 2016, 10:18 AM
Parents
rB9a8797006998: Low: list_ticket: space complexity depends just on tickets count
Branches
Unknown
Tags
Unknown

Event Timeline