In json-c 0.19, json_object_put calls the function that frees detached JSON objects inside assert(). Release builds with NDEBUG skip that call. Sway's frequent IPC replies then leak memory, eventually making workspace switches lag. Patching json-c in the main package set changes the library's store path and forces dependent packages, including Firefox and Chromium, to rebuild. Keep the pin with SPDK 26.09 and build the ABI-compatible fix separately. Rewrite runtime references in NixOS systems and standalone Home Manager generations to reuse their existing binaries. Drop the replacement when the pinned nixpkgs includes the fix. https://github.com/NixOS/nixpkgs/pull/586077