Will this leak memory?

if @PieterP comes around, he will tell you

Usage of new should be limited to low-level code only, cf C++ Core Guidelines: Avoid calling new and delete explicitly

1 Like