]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "disable json assert on OSX, it always fails"
authorAlan T. DeKok <aland@freeradius.org>
Mon, 13 Jul 2026 17:52:37 +0000 (13:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 13 Jul 2026 17:52:37 +0000 (13:52 -0400)
This reverts commit b4789234503dd6d5f16ec5c08d2728dca7dfb630.

it randomly fails on other platforms, too

src/lib/json/json.c

index d4e9d9ce8b90fa9835ba1fc673696ff34a7b9150..1c0db6c5857b81925cd5cc19da95f7f652bb4d4b 100644 (file)
@@ -79,7 +79,6 @@ conf_parser_t const fr_json_format_config[] = {
        CONF_PARSER_TERMINATOR
 };
 
-#ifndef __APPLE__
 static inline CC_HINT(always_inline)
 void json_object_put_assert(json_object *obj)
 {
@@ -90,13 +89,6 @@ void json_object_put_assert(json_object *obj)
 
        fr_assert_fail("json_object_put did not free object (returned %d), likely leaking memory", ret);
 }
-#else
-/*
- *     The assertions fail on OSX in CI, so just disable them until
- *     the json-c libraries there get fixed.
- */
-#define json_object_put_assert(_x) (void) json_object_put(_x)
-#endif
 
 /** Convert json object to fr_value_box_t
  *