lib/base: Avoid compiler warning about use-after-free on Fedora 36
commitc132e6ff499889c61f6b28a7d88e6521611bd346
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Oct 2022 00:21:31 +0000 (27 13:21 +1300)
committerJeffrey Altman <jaltman@auristor.com>
Thu, 17 Nov 2022 14:42:48 +0000 (17 09:42 -0500)
tree87938d410a8c69af0fb48d63cc53766f6ca29365
parent2c8be80a254fb8fd1d19fb305a3438d681dec704
lib/base: Avoid compiler warning about use-after-free on Fedora 36

While the local stack pointers could be thought of as "only"
numbers that are not invalidated by the memory they point at
being freed, any use of the pointer after the free is undefined
and so warned about (at best).

gcc version 12.2.1 20220819 (Red Hat 12.2.1-1) (GCC)

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/base/json.c