Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libedit/history.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libedit/history.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.28 retrieving revision 1.29 diff -u -p -r1.28 -r1.29 --- src/lib/libedit/history.c 2004/11/27 18:31:45 1.28 +++ src/lib/libedit/history.c 2005/07/06 21:13:02 1.29 @@ -1,4 +1,4 @@ -/* $NetBSD: history.c,v 1.28 2004/11/27 18:31:45 christos Exp $ */ +/* $NetBSD: history.c,v 1.29 2005/07/06 21:13:02 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)history.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: history.c,v 1.28 2004/11/27 18:31:45 christos Exp $"); +__RCSID("$NetBSD: history.c,v 1.29 2005/07/06 21:13:02 christos Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -523,6 +523,7 @@ history_end(History *h) if (h->h_next == history_def_next) history_def_clear(h->h_ref, &ev); + h_free(h); }