From: Hans-Bernhard B. <br...@ph...> - 2004-08-21 08:25:18
|
Daniel J Sebald wrote: > Browsing through the df_3dmatrix() to make sure I've covered everything, > I think I spotted a memory leak. Near the top of the routine is > But of course in between is all sorts of ways that the routine can error > out. Hence the memory leak. Dropping allocated memory on erroring out doesn't necessarily count as a memory leak, IMHO, if it errors out all the way to the command line. I.e. I view calling int_error() is a license to leak as much memory as you like, because trying to avoid memory leaks across a longjmp() is a futile exercise. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |