]> git.ipfire.org Git - thirdparty/json-c.git/commit
Handle yet another out-of-memory condition. 861/head
authorBruno Haible <bruno@clisp.org>
Sun, 21 Apr 2024 23:50:59 +0000 (01:50 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Apr 2024 23:54:10 +0000 (01:54 +0200)
commit833233faa8d6835276ebbd48b92c7feeb141270d
tree9ef6134da033519516c3693e3cbc0dc6c73fde2e
parent31a22fb2dabae30a759ae3346b493b44cedf1647
Handle yet another out-of-memory condition.

duplocale() can return NULL, with errno set to ENOMEM.
In this case, bail out and set the current error code to
json_tokener_error_memory.
json_tokener.c