Add provides_version and depends_version
Fix memory leak