Med: format_peers: 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