From 8b522e7740bdad094fde01f39e9af3f6db3198e9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Mar 2008 21:02:48 +0100 Subject: [PATCH] Remove the last dependency on the "free" module. * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE. Reported by Bob Proulx. --- ChangeLog | 4 ++++ m4/readutmp.m4 | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29dc04a8b..9573a79ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-02 Jim Meyering + Remove the last dependency on the "free" module. + * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE. + Reported by Bob Proulx. + * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc. Remove useless "if" tests before free. Deprecate "free" module. diff --git a/m4/readutmp.m4 b/m4/readutmp.m4 index eb6369f4f..6931dc55a 100644 --- a/m4/readutmp.m4 +++ b/m4/readutmp.m4 @@ -1,5 +1,5 @@ -# readutmp.m4 serial 14 -dnl Copyright (C) 2002-2007 Free Software Foundation, Inc. +# readutmp.m4 serial 15 +dnl Copyright (C) 2002-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -15,7 +15,6 @@ AC_DEFUN([gl_READUTMP], dnl Prerequisites of lib/readutmp.h and lib/readutmp.c. AC_REQUIRE([AC_C_INLINE]) - AC_REQUIRE([gl_FUNC_FREE]) AC_CHECK_FUNCS_ONCE(utmpname utmpxname) AC_CHECK_DECLS(getutent,,,[ #ifdef HAVE_UTMP_H -- 2.11.0