[pve-devel] [PATCH librados2-perl 1/6] mon_command: free outs buffer
Aaron Lauterer
a.lauterer at proxmox.com
Fri Feb 18 12:38:22 CET 2022
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
thanks @Dominik who realized that we did not free this buffer in all
situations.
RADOS.xs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/RADOS.xs b/RADOS.xs
index 7eca024..1eb0b5a 100644
--- a/RADOS.xs
+++ b/RADOS.xs
@@ -145,6 +145,10 @@ CODE:
RETVAL = newSVpv(outbuf, outbuflen);
rados_buffer_free(outbuf);
+
+ if (outs != NULL) {
+ rados_buffer_free(outs);
+ }
}
OUTPUT: RETVAL
--
2.30.2
More information about the pve-devel
mailing list