mmc: core: Fix possible memory leaks