[ndctl PATCH 0/2] ndctl: fix various valgrind issues