Fix various memory management issues
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 21 Jun 2016 15:19:10 +0000 (17:19 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 26 Jun 2016 10:53:51 +0000 (12:53 +0200)
commit1f019ceea1ed39286e6bccfb3ff936c22fe0f7c0
tree92ec3e71ca90b1bb12ff930ac1b7abfa8c1d0e07
parentc2f2c47f3e9a2d709ec82a79f6fadd3124c18781
Fix various memory management issues

Consistently handle allocation failures. Some functions are changed to
return bool or int instead of void to allow returning an error.

Also fix a buffer size miscalculation in lua/uloop and use _exit() instead
of exit() on errors after forking.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
blobmsg.c
blobmsg.h
blobmsg_json.c
jshn.c
json_script.c
kvlist.c
kvlist.h
lua/uloop.c
ustream.c
utils.c