fix of fix https://github.com/xaionaro/clsync/commit/fad9014ae92eb3efd909c52474be96faa9ddec55 and valgrind-ed