Fix compile warnings: Unused, assignment to free var, ...

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>