[Snowball-discuss] Memory leak in api.c?

Bradley Grainger bgrainger@libronix.com
Tue, 12 Mar 2002 16:36:19 -0800


This is a multi-part message in MIME format.

------_=_NextPart_001_01C1CA27.17AF6F01
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I think I have found a memory leak in q/api.c. In SN_create_env, z->p is in=
itialised (line 6), but it is not freed in SN_close_env. The attached patch=
 adds the line:
    if (z->p) lose_s(z->p);
to SN_close_env.

Bradley

------_=_NextPart_001_01C1CA27.17AF6F01
Content-Type: application/octet-stream; name="api.c.diff"
Content-Transfer-Encoding: base64
Content-Description: api.c.diff
Content-Disposition: attachment; filename="api.c.diff"

LS0tIGFwaS5jLm9sZAlUdWUgTWFyIDEyIDE2OjI0OjA3IDIwMDIKKysrIGFwaS5jCVR1ZSBNYXIg
MTIgMTY6MjQ6NTkgMjAwMgpAQCAtMzYsNiArMzYsNyBAQAogICAgIH0NCiAgICAgaWYgKHotPklf
c2l6ZSkgZnJlZSh6LT5JKTsNCiAgICAgaWYgKHotPkJfc2l6ZSkgZnJlZSh6LT5CKTsNCisgICAg
aWYgKHotPnApIGxvc2Vfcyh6LT5wKTsKICAgICBmcmVlKHopOw0KIH0NCiANCg==

------_=_NextPart_001_01C1CA27.17AF6F01--

_______________________________________________
Snowball-discuss mailing list
Snowball-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snowball-discuss