Re: memory leak (definition?)
- From: "bill" <bill.pursell@xxxxxxxxx>
- Date: 27 Dec 2005 23:53:04 -0800
Christopher Benson-Manica wrote:
> Flash Gordon <spam@xxxxxxxxxxxxxxxxxx> wrote:
>
> > The correct solution is to understand the SW you are using and how to
> > use it correctly. It is IMHO far more likely to be a problem in your
> > code than the code you are calling.
>
> Depends on which 3rd party wrote the kernel module, really.
>
Also, it depends highly on the quality of the documentation
provided with the module. The correct solution in this particular
situation is to stop using their software, but that's out
of my hands. Since my code is doing exactly 2 things:
calling their function to allocate a data structure and then calling
their code to free it, and their documentation claims that these
2 functions work together, it is in fact highly unlikely that the
problem is in my code. My understanding of their software
is sufficient to recognize that it is crap and that proper use
constitutes placing it in the garbage can.
My original question, which I can phrase more succinctly thanks
to Gordon Burditt's response, is whether the exec family of functions
will
play nicely with kernel memory. That question was posted here
only as an ancillary to what I thought was an interesting toy
question regarding the definition of a memory leak which I
thought might be interesting to some of the people
reading comp.lang.c. If you feel that it is entirely off topic
than the correct response is to either make no response
or respond outside of the group. The C language is and
has always been closely tied to the Unix heritage, and IMO
questions regarding the behavior of low-level functions
such as the exec family are in fact relevant to the language and
to this newsgroup. I recognize that many people have tried
to divorce this group from anything beyond the language
proper, and that is in fact why I don't bother reading the group
very often anymore.
.
- Follow-Ups:
- Re: memory leak (definition?)
- From: Flash Gordon
- Re: memory leak (definition?)
- References:
- memory leak (definition?)
- From: bill
- Re: memory leak (definition?)
- From: Flash Gordon
- Re: memory leak (definition?)
- From: Christopher Benson-Manica
- memory leak (definition?)
- Prev by Date: Re: Allocation of memory for Array of Pointers
- Next by Date: Members of a typedef struct
- Previous by thread: Re: memory leak (definition?)
- Next by thread: Re: memory leak (definition?)
- Index(es):
Relevant Pages
|
|