free return value of dirname()
free memory used by breakpoints
Merge pull request #2646 from cremno/mrdb-fix-memory-leaks

mrdb: fix two memory leaks