[PATCH v3 1/7] libnvdimm: fix memory leaks in of_pmem.c