From 8d1beb42bd47855428b652805a9d31243f22fdec Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Tue, 14 Apr 2020 12:44:34 +0100 Subject: [PATCH] fix leak in inplace task destructor --- lib/include/srslte/common/inplace_task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/common/inplace_task.h b/lib/include/srslte/common/inplace_task.h index 805269609..f0d0ec215 100644 --- a/lib/include/srslte/common/inplace_task.h +++ b/lib/include/srslte/common/inplace_task.h @@ -74,7 +74,7 @@ struct oper_table_t { *static_cast(dest) = *static_cast(src); *static_cast(src) = nullptr; }, - [](void* src) -> void { (*static_cast(src))->~Func(); }}; + [](void* src) -> void { delete (*static_cast(src)); }}; return &t; }