Fix issue "stale metric can't be deleted."

This issue is caused by temporary fix of issue #45, as cleanup code is commented out.
Change metric name memory pool to metric->pool, so memory leak in issue #45 is resolved also.