VFS : Is there a safe way to allocate memory ?
Simo Sorce
simo.sorce at xsec.it
Thu Jun 13 13:31:31 GMT 2002
use talloc and keep the memory context somwhere you can always reach it
and free it.
On Thu, 2002-06-13 at 21:37, troutb at abclabs.com wrote:
> #define _AA_FDLIST_SIZE 1024
>
> connect function contains ...
>
> extern unsigned char *_pwsFiles;
>
> _pwsFiles = (unsigned char *)malloc(_AA_FDLIST_SIZE);
>
> crashes share ... con't connect
>
>
>
--
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l.
via Durando 10 Ed. G - 20158 - Milano
tel. +39 02 2399 7130 - fax: +39 02 700 442 399
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20020613/5717b8f9/attachment.bin
More information about the samba-technical
mailing list