Fix various trivial memory leaks in namespaces

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fix various leaks in ns_test

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>