From 91d19974350afbf8e532e5d3d8f9e0a3286dae0e Mon Sep 17 00:00:00 2001 From: eduponz Date: Mon, 3 Jun 2024 08:33:16 +0200 Subject: [PATCH] Refs #20815: Fix memory leak Signed-off-by: eduponz --- test/blackbox/api/dds-pim/PubSubReader.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/blackbox/api/dds-pim/PubSubReader.hpp b/test/blackbox/api/dds-pim/PubSubReader.hpp index b8a5503613a..83947444203 100644 --- a/test/blackbox/api/dds-pim/PubSubReader.hpp +++ b/test/blackbox/api/dds-pim/PubSubReader.hpp @@ -1951,9 +1951,10 @@ class PubSubReader postprocess_sample(*data, info); - // Delete the free-storage allocated data sample - type_.delete_data(data); } + + // Delete the free-storage allocated data sample + type_.delete_data(data); } void receive_samples(