Re: Memory Leak Problem
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 18:26:58 -0800
Richard Maine wrote:
(snip)
I did notice one "obvious" error in the code, but it is probably of
little consequence. The very first executable statement in the code is
an allocate of rout to size n. Unfortunately, n hasn't yet been defined.
Thus this allocate is illegal. I also note that you never deallocate
that first allocation, and for that matter, you never do anything
constructive with it at all. You set rout to 0, but then never use rout
until after you allocate it to some presumably more sensible size.
That doesn't sound like "little consequence" to me.
If n is negative or very large I might expect unusual effects.
-- glen
.
- References:
- Memory Leak Problem
- From: babakh99
- Re: Memory Leak Problem
- From: Richard Maine
- Memory Leak Problem
- Prev by Date: Re: a problem in subroutine
- Next by Date: Re: Internal compiler error when both using and passing an intrinsic function
- Previous by thread: Re: Memory Leak Problem
- Next by thread: Re: Memory Leak Problem
- Index(es):
Relevant Pages
|