)]}'
{
  "commit": "aca77dfd90c8a17a2b3526c5cc871cc410357a5f",
  "tree": "26bf79f1638b47beeaedccbcd2388c44a6af58e8",
  "parents": [
    "c9bfe4127d60db6b195204dca1caa45f1e638270"
  ],
  "author": {
    "name": "Peter Maydell",
    "email": "peter.maydell@linaro.org",
    "time": "Thu Mar 05 16:15:31 2026 +0000"
  },
  "committer": {
    "name": "Pierrick Bouvier",
    "email": "pierrick.bouvier@linaro.org",
    "time": "Thu Mar 05 10:54:09 2026 -0800"
  },
  "message": "tests/tcg/plugins/patch: Free read_data in patch_hwaddr()\n\nIn patch_hwaddr() we allocate a GByteArray for the data we read back\nfrom the guest; however we forget to free it, and the leak sanitizer\ncomplains:\n\nDirect leak of 40 byte(s) in 1 object(s) allocated from:\n    #0 0x56c00ad48293 in malloc (/home/pm215/qemu/build/x86-tgt-san/qemu-system-x86_64+0x1a9f293) (BuildId: 62e2a7dbe5ff146b2fa14d26e24e443f1967edd9)\n    #1 0x7b3e4cc91ac9 in g_malloc (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x62ac9) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #2 0x7b3e4cc54c12 in g_array_sized_new (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x25c12) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #3 0x7b3e44b06b49 in patch_hwaddr /home/pm215/qemu/build/x86-tgt-san/../../tests/tcg/plugins/patch.c:68:29\n\nIndirect leak of 16 byte(s) in 1 object(s) allocated from:\n    #0 0x56c00ad486b0 in realloc (/home/pm215/qemu/build/x86-tgt-san/qemu-system-x86_64+0x1a9f6b0) (BuildId: 62e2a7dbe5ff146b2fa14d26e24e443f1967edd9)\n    #1 0x7b3e4cc92819 in g_realloc (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x63819) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #2 0x7b3e4cc54b36  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x25b36) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #3 0x7b3e4cc55276 in g_array_set_size (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x26276) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #4 0x7b3e4cc55574 in g_byte_array_set_size (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x26574) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3)\n    #5 0x56c00be2ccc1 in qemu_plugin_read_memory_hwaddr /home/pm215/qemu/build/x86-tgt-san/../../plugins/api.c:524:5\n\nMark the variable as g_autoptr(), as we already do in the equivalent\ncode in patch_vaddr().\n\nSigned-off-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\nReviewed-by: Pierrick Bouvier \u003cpierrick.bouvier@linaro.org\u003e\nLink: https://lore.kernel.org/qemu-devel/20260305161531.1774895-4-peter.maydell@linaro.org\nSigned-off-by: Pierrick Bouvier \u003cpierrick.bouvier@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "111c5c1f16980fe9d8fa5b9700f13e2afc8574e1",
      "old_mode": 33188,
      "old_path": "tests/tcg/plugins/patch.c",
      "new_id": "eba2f8b8d6c107747676c175c269785ab03d39f4",
      "new_mode": 33188,
      "new_path": "tests/tcg/plugins/patch.c"
    }
  ]
}
