J
Joona I Palaste
If it doesn't *guarantee* a memory leak, how can you prove that the code
in question generates one?
Are you unable to tell the difference between mandated behaviour and
allowed behaviour?
BTW, any language lawyer could trivially point out that even matching
any malloc call by a corresponding free call doesn't guarantee that
no memory leaks occur. The standard simply does not address the issue in
an unequivocal manner.
Here is the part in my post that you snipped:
"(I had a similar discussion with Dan Pop once. I don't think I won that
argument. I'm not going to try to win this one. Just pointing this out.)"
Keeping that in mind, I won't argue further. Those interested in the
arguments in the previous debate can look it up on Google. AFAICR it
involved the fclose() function.