Re: [SPAM] Memory leak in izo_upc_upcall() ?

"Yang, Chen" <[email protected]> Tue, 7 Oct 2003 00:35:02 +0800 (CST)
Newsgroups gmane.comp.file-systems.intermezzo.devel
Message-ID <[email protected]>
Hi, This should not cause memory leakage. Only those called presto_alloc
routines should call presto_free routine to free the memory. From the
routine, we can see that req->rq_data is just a pointer to the parameter
passed in. So it should not be free-ed.
   If there is something wrong, please correct me.Thanks.
--
   Yang, Chen
> Hi, I’ve tried the new version 1.42 2003/09/30 of intermezzo
> and I think there’s a memory leak at the near of the end the
> izo_upc_upcall().
>
> ...
> exit_req:
>     PRESTO_FREE(req->rq_data, req->rq_bufsiz); // I think this line is
> missing.
>     PRESTO_FREE(req, sizeof(struct upc_req));
> exit_buf:
>     return error;
> }
>
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf