Most leaks could only occur on error cleanup paths.
---
Respin of Jiri's 2/4 v1 patch, now much smaller by relying
on guaranteed semantics.
Jiri's patch 1 and 4 of the v1 series are still okay to apply
as-is, but patch 3/4 needs rebasing onto this patch.
tests/commandtest.c | 72 +++++++++++++++++++++++++++++++-------------------
1 files changed, 45 insertions(+), 27 deletions(-)
ACK
Jirka