From e299cccb6e7133c05bbb1e6c0fcc2f55151bd766 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Mon, 16 Feb 2026 19:09:30 +0100 Subject: [PATCH] C++: Simplify test --- .../Memory Management/ReturnStackAllocatedMemory/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test.cpp b/cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test.cpp index abde10eb6e7..07e3520fa81 100644 --- a/cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test.cpp +++ b/cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test.cpp @@ -250,8 +250,8 @@ void* test_strndupa(const char* s, size_t size) { return s2; // BAD } -int* f_rec(int *p, bool b) { +int* f_rec(int *p) { int x; - int* px = f_rec(&x, b); // GOOD + int* px = f_rec(&x); // GOOD return p; }