Fixed some minor memory leaks in storaged.
Fixed issue #14 in rprof.