ls-remote: release memory instead of UNLEAK
[gitweb.git] / builtin / diff.c
index 361a3c3ed38769f798b83933755fed84724ce43c..b3a8ba488ff824e2feda6b24df362f662fe5ddde 100644 (file)
@@ -41,7 +41,7 @@ static void stuff_change(struct diff_options *opt,
        struct diff_filespec *one, *two;
 
        if (!is_null_oid(old_oid) && !is_null_oid(new_oid) &&
-           !oidcmp(old_oid, new_oid) && (old_mode == new_mode))
+           oideq(old_oid, new_oid) && (old_mode == new_mode))
                return;
 
        if (opt->flags.reverse_diff) {