Use diff_tree() directly in making cover letter
[gitweb.git] / builtin-pack-objects.c
index 586ae1197570d99fcbb8913003e8aa3c55b31777..1bba6e6a64220ef2121ce8817ccae123739f4e8e 100644 (file)
@@ -1429,8 +1429,7 @@ static int try_delta(struct unpacked *trg, struct unpacked *src,
         * accounting lock.  Compiler will optimize the strangeness
         * away when THREADED_DELTA_SEARCH is not defined.
         */
-       if (trg_entry->delta_data)
-               free(trg_entry->delta_data);
+       free(trg_entry->delta_data);
        cache_lock();
        if (trg_entry->delta_data) {
                delta_cache_size -= trg_entry->delta_size;