Fix some memleaks

I have done some more work fixing annoying memory leaks, valgrind seems to be a bit happier now. Those memleaks are only those that appear when launching and immediately exiting radare2. However there are still a lot memleaks involving sdb_new.

Not sure if should squash these commits into a single one.