]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diffcore-rename.c
hashmap: introduce hashmap_free_entries
[thirdparty/git.git] / diffcore-rename.c
index 611b08f463d670862605500036db4942c8fbfef4..994609ed58a512e9621e1882ef899577a0699f4c 100644 (file)
@@ -358,7 +358,7 @@ static int find_exact_renames(struct diff_options *options)
                renames += find_identical_files(&file_table, i, options);
 
        /* Free the hash data structure and entries */
-       hashmap_free(&file_table, 1);
+       hashmap_free_entries(&file_table, struct file_similarity, entry);
 
        return renames;
 }