[sheepdog] [sheepdog/sheepdog] ca32ca: sheep: remove xmalloc(), xzalloc() and xvalloc() f...
Hitoshi Mitake
mitake.hitoshi at gmail.com
Fri Jan 15 14:08:10 CET 2016
Branch: refs/heads/master
Home: https://github.com/sheepdog/sheepdog
Commit: ca32ca8ced4f4da2e53e1e283a2799eb478b7619
https://github.com/sheepdog/sheepdog/commit/ca32ca8ced4f4da2e53e1e283a2799eb478b7619
Author: Takashi Menjo <takashi.menjo+github at gmail.com>
Date: 2016-01-15 (Fri, 15 Jan 2016)
Changed paths:
M sheep/gateway.c
Log Message:
-----------
sheep: remove xmalloc(), xzalloc() and xvalloc() from gateway path
Some functions in sheep/gateway.c call xmalloc(), xzalloc() and xvalloc().
These x*alloc() will kill sheep when memory allocation is failed. So they
should not be called.
This removes x*alloc() from the functions in the gateway path and make
them return error to their callers instead of killing sheep when memory
allocation is failed.
This closes sheepdog/sheepdog#207.
Signed-off-by: Takashi Menjo <takashi.menjo+github at gmail.com>
Commit: 2ecb0fb07e698a2f20d08e31437f085f21d11bc6
https://github.com/sheepdog/sheepdog/commit/2ecb0fb07e698a2f20d08e31437f085f21d11bc6
Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
Date: 2016-01-15 (Fri, 15 Jan 2016)
Changed paths:
M sheep/gateway.c
Log Message:
-----------
Merge branch 'remove-xmalloc-from-gateway-c' of https://github.com/tmenjo/sheepdog into tmenjo-remove-xmalloc-from-gateway-c
Commit: 7e9c6c27993d434958f7ba58208a1f5a7b06761f
https://github.com/sheepdog/sheepdog/commit/7e9c6c27993d434958f7ba58208a1f5a7b06761f
Author: Hitoshi Mitake <mitake.hitoshi at gmail.com>
Date: 2016-01-15 (Fri, 15 Jan 2016)
Changed paths:
M sheep/gateway.c
Log Message:
-----------
Merge branch 'tmenjo-remove-xmalloc-from-gateway-c'
Compare: https://github.com/sheepdog/sheepdog/compare/c3bb37e4f3a9...7e9c6c27993d
More information about the sheepdog
mailing list