Quote Originally Posted by panzram View Post
Could this be leaking?
There are no memory leaks in the code you've posted.

Just in case that this is a pseudo code make sure that in your implementation, test() is not returning or throwing an exception between the memory allocation and the memory release.


Regards
Doron