--- regex-posix.c.~1.53.2.3.~ 2002-03-14 15:26:15.000000000 +1000 +++ regex-posix.c 2004-07-04 18:57:30.000000000 +1000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -210,6 +210,8 @@ cflags & ~REG_NOSUB); if (status != 0) { + free (rx); + scm_done_free (sizeof (regex_t)); scm_error (scm_regexp_error_key, FUNC_NAME, scm_regexp_error_msg (status, rx),