mmc: core: fix possbile memory leak