Fixing freeing of undeclared variable in transpose test