]> git.proxmox.com Git - librados2-perl.git/commit
mon command: fix calling free() code style-mix
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Feb 2022 15:14:41 +0000 (16:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Feb 2022 15:24:12 +0000 (16:24 +0100)
commit43ab5a2c47f0a7cb1b09ffc23dc9e8b3c017afbc
tree990905d7c2c3ce4fbc11bdfeb3e35124aca3936e
parent5cd9735744b2f94b4cc2aeca7d048f64cb7948a2
mon command: fix calling free() code style-mix

the error case checked for nullness on outbuf but not outs, while the
normal code path did the exact reverse, which is rather confusing for
any reader, as they could think there's something implied by this.

There isn't and rados' rados_buffer_free is already having its own
non-null check, not that it would matter much to call free with null
anyway.., but always using the rados provided method ensures tracing
shows the free, which could be good on debugging..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
RADOS.xs