mrdb: fix two memory leaks