From: Arran Cudbard-Bell Date: Wed, 5 Oct 2022 03:55:32 +0000 (-0400) Subject: Always pass in line numbers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=078ce4564240a9e71050ee0bf2f602ce13ba8a46;p=thirdparty%2Ffreeradius-server.git Always pass in line numbers --- diff --git a/src/lib/util/atexit.h b/src/lib/util/atexit.h index cea40c45119..f98c6360b77 100644 --- a/src/lib/util/atexit.h +++ b/src/lib/util/atexit.h @@ -55,7 +55,7 @@ int _atexit_global(char const *file, int line, fr_atexit_t func, void const *uct * - 0 on success. * - -1 on failure. */ -#define fr_atexit_global(_func, _uctx) _atexit_global(NDEBUG_LOCATION_EXP _func, _uctx) +#define fr_atexit_global(_func, _uctx) _atexit_global(__FILE__, __LINE__, _func, _uctx) unsigned int fr_atexit_global_disarm(bool uctx_scope, fr_atexit_t func, void const *uctx); @@ -119,7 +119,7 @@ bool fr_atexit_is_exiting(void); # define fr_atexit_thread_local(_name, _free, _uctx) \ do { \ void *_our_uctx = _uctx; /* stop _uctx being evaluated multiple times, it may be a call to malloc() */ \ - _fr_atexit_thread_local(NDEBUG_LOCATION_EXP _free, _our_uctx); \ + _fr_atexit_thread_local(__FILE__, __LINE__, _free, _our_uctx); \ _name = _our_uctx; \ } while (0);