[PATCH] Add GIT glossary
[gitweb.git] / diffcore-break.c
index 920062bfd9047b4577485f8c8a152f20a2b8f297..b0c8461e1243328795258f0fd7d12f509403403c 100644 (file)
@@ -65,7 +65,7 @@ static int should_break(struct diff_filespec *src,
 
        delta = diff_delta(src->data, src->size,
                           dst->data, dst->size,
-                          &delta_size);
+                          &delta_size, 0);
 
        /* Estimate the edit size by interpreting delta. */
        if (count_delta(delta, delta_size,
@@ -231,8 +231,8 @@ static void merge_broken(struct diff_filepair *p,
 
        dp = diff_queue(outq, d->one, c->two);
        dp->score = p->score;
-       diff_free_filespec_data(d->two);
-       diff_free_filespec_data(c->one);
+       diff_free_filespec(d->two);
+       diff_free_filespec(c->one);
        free(d);
        free(c);
 }