[PATCH] dwrite: Handle memory allocation failures in bidi_compute_bracket_pairs (cppcheck)