fix memory leak (incomplete rdz_result_free)
adopt the {lib}_{type}_{action} naming scheme