Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
LessDmesg
· 6y ago · 0 comments
Just use a finally block to free the array even in case of exceptions. Or does C++ not have finally blocks?
Comments
[–]
rleigh
6y ago
It does not have finally blocks. However, correct use of RAII should be used to automatically free resources as they go out of scope.