From 0966efb179385b604f1404eed36311f3c4b6e545 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 30 Aug 2025 08:35:04 +0200 Subject: fix: memory leak fixed in `basic_chunk_string` fix: `tracked_ptr` example for `make_tracked` Signed-off-by: Amlal El Mahrouss --- dev/examples/tracked_ptr/tracked_ptr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/examples') diff --git a/dev/examples/tracked_ptr/tracked_ptr.cc b/dev/examples/tracked_ptr/tracked_ptr.cc index 5b70afd..6e3f4a2 100644 --- a/dev/examples/tracked_ptr/tracked_ptr.cc +++ b/dev/examples/tracked_ptr/tracked_ptr.cc @@ -9,7 +9,7 @@ static void summon_tracked_ptr() { - ocl::memory::tracked_ptr ptr = ocl::memory::make_tracked(42); + ocl::memory::tracked_ptr ptr = ocl::memory::make_tracked(42); std::cout << ptr.data() << "=" << ptr.manager().allocator().allocated_count_ << std::endl; } -- cgit v1.2.3