# HG changeset patch # User Mike Becker # Date 1765302671 -3600 # Node ID 9e50f45f8736071ea2b1bffe7d8b661099669670 # Parent fc863c877a752ffc057bcf160f6e492a2138c22b fix that cxPropertiesLoad() is not falling back to the default allocator when the allocator is NULL diff -r fc863c877a75 -r 9e50f45f8736 src/properties.c --- a/src/properties.c Tue Dec 09 17:27:58 2025 +0100 +++ b/src/properties.c Tue Dec 09 18:51:11 2025 +0100 @@ -254,6 +254,10 @@ CxPropertiesStatus cx_properties_load(CxPropertiesConfig config, const CxAllocator *allocator, cxstring filename, CxMap *target) { + if (allocator == NULL) { + allocator = cxDefaultAllocator; + } + // sanity check for the map const bool use_cstring = cxCollectionStoresPointers(target); if (!use_cstring && cxCollectionElementSize(target) != sizeof(cxmutstr)) {