)]}'
{
  "commit": "c45dc9cf30a6f7f40adb3ea70dd2f2905ecd4afa",
  "tree": "622b2b4ae4cc83c5f939878413accfba45579389",
  "parents": [
    "e900d494dcff7bb9033865e61b452128ff232481"
  ],
  "author": {
    "name": "Ævar Arnfjörð Bjarmason",
    "email": "avarab@gmail.com",
    "time": "Thu Feb 11 11:45:35 2021 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Feb 11 09:21:07 2021 -0800"
  },
  "message": "diff: plug memory leak from regcomp() on {log,diff} -I\n\nFix a memory leak in 296d4a94e7 (diff: add -I\u003cregex\u003e that ignores\nmatching changes, 2020-10-20) by freeing the memory it allocates in\nthe newly introduced diff_free(). See the previous commit for details\non that.\n\nThis memory leak was intentionally introduced in 296d4a94e7, see the\ndiscussion on a previous iteration of it in\nhttps://lore.kernel.org/git/xmqqeelycajx.fsf@gitster.c.googlers.com/\n\nAt that time freeing the memory was somewhat tedious, but since it\nisn\u0027t anymore with the newly introduced diff_free() let\u0027s use it.\n\nLet\u0027s retain the pattern for diff_free_file() and add a\ndiff_free_ignore_regex(), even though (unlike \"diff_free_file\") we\ndon\u0027t need to call it elsewhere. I think this\u0027ll make for more\nreadable code than gradually accumulating a giant diff_free()\nfunction, sharing \"int i\" across unrelated code etc.\n\nSigned-off-by: Ævar Arnfjörð Bjarmason \u003cavarab@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a63c9ecae7959a22978927037aac0d1cb4713e52",
      "old_mode": 33188,
      "old_path": "diff.c",
      "new_id": "bf2cbf15e776d0405aeaf94828e7d64990889f7d",
      "new_mode": 33188,
      "new_path": "diff.c"
    }
  ]
}
