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

From: Bradley Grainger (bgrainger@libronix.com)
Date: Wed Mar 13 2002 - 00:36:19 GMT


I think I have found a memory leak in q/api.c. In SN_create_env, z->p is initialised (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



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



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:41 BST