mmc: core: Fix possbile memory leak