Vincent Le Chevalier <gal### [at] libertyallsurfspamfr> wrote:
> I think it would be more informative to give fixes that do not rely on
> the standard library... After all the 'new' operator exists for a
> reason, you don't always want to use the standard lib, and knowing what
> to do in these cases is useful.
If the standard library cannot be used, then it becomes a bit complicated.
> No I won't do it as I'm not even sure I know where the leak is in the
> first case :-)
If bar() throws an exception you have a memory leak.
--
- Warp
Post a reply to this message
|