commit: prepare free_commit_buffer and release_commit_memory for any repo