[Aldor-l] Code audit
Pippijn van Steenhoven
pip88nl at gmail.com
Sat Jun 28 13:46:26 EDT 2008
Hi all,
in foam.c: foamFrString (String), a Buffer is created, used and then
liberated. It is not freed. Why not?
Code:
Foam
foamFrString(String s)
{
Foam foam;
Buffer buf;
buf = bufCapture(s, stoSize(s));
foam = foamFrBuffer(buf);
bufLiberate(buf); // <- here
return foam;
}
--
Pippijn van Steenhoven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://aldor.org/pipermail/aldor-l_aldor.org/attachments/20080628/a7f47bf1/attachment.bin
More information about the Aldor-l
mailing list