Merge branch 'ma/lockfile-fixes'
[gitweb.git] / builtin / diff.c
index 91995965d79d559c7fbea2aa2aedd76ce98b6e96..aa6f746795fb82feb4de1ff28f8f0350ee18092c 100644 (file)
@@ -463,5 +463,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
        result = diff_result_code(&rev.diffopt, result);
        if (1 < rev.diffopt.skip_stat_unmatch)
                refresh_index_quietly();
+       UNLEAK(rev);
+       UNLEAK(ent);
+       UNLEAK(blob);
        return result;
 }