diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2007-05-06 22:23:52 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2007-05-06 22:23:52 -0400 |
commit | 741e82fc69b69a3bfc14f33f33766a89cea4df42 (patch) | |
tree | 92830b34830f8ae07b251d96693c93392909d914 /src/LYexit.c | |
parent | 9fa44396215d14644ecd5aa32c04327d4e6243a2 (diff) | |
download | lynx-snapshots-741e82fc69b69a3bfc14f33f33766a89cea4df42.tar.gz |
snapshot of project "lynx", label v2-8-7dev_4d
Diffstat (limited to 'src/LYexit.c')
-rw-r--r-- | src/LYexit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/LYexit.c b/src/LYexit.c index 6baf2fc4..e5d06aec 100644 --- a/src/LYexit.c +++ b/src/LYexit.c @@ -1,5 +1,8 @@ /* + * $LynxId: LYexit.c,v 1.33 2007/05/06 21:41:43 tom Exp $ + * * Copyright (c) 1994, University of Kansas, All Rights Reserved + * (most of this file was rewritten in 1996 and 2004). */ #include <HTUtils.h> #include <LYexit.h> @@ -164,6 +167,15 @@ void LYexit(int status) LYCloseTracelog(); #endif /* !VMS */ show_alloc(); + +#if defined(NCURSES_VERSION) && defined(LY_FIND_LEAKS) +#if defined(HAVE__NC_FREE_AND_EXIT) + _nc_free_and_exit(status); +#elif defined(HAVE__NC_FREEALL) + _nc_freeall(); +#endif +#endif /* NCURSES_VERSION */ + exit(status); } |