)]}'
{
  "commit": "729d70f5dfd663b44bca68a4479c96bde7e535d6",
  "tree": "f92ee98a709264984ef6e3e8d6c3ee4f3462797f",
  "parents": [
    "8126fdbc76351bdf99c6737ef4fecf88a22fa538"
  ],
  "author": {
    "name": "Jan Blunck",
    "email": "j.blunck@tu-harburg.de",
    "time": "Sat Aug 27 11:07:52 2005 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@g5.osdl.org",
    "time": "Sat Aug 27 11:22:27 2005 -0700"
  },
  "message": "[PATCH] sg.c: fix a memory leak in devices seq_file implementation\n\nI know that scsi procfs is legacy code but this is a fix for a memory leak.\n\nWhile reading through sg.c I realized that the implementation of\n/proc/scsi/sg/devices with seq_file is leaking memory due to freeing the\npointer returned by the next() iterator method.  Since next() might return\nNULL or an error this is wrong.  This patch fixes it through using the\nseq_files private field for holding the reference to the iterator object.\n\nHere is a small bash script to trigger the leak. Use slabtop to watch\nthe size-32 usage grow and grow.\n\n#!/bin/sh\n\nwhile true; do\n\tcat /proc/scsi/sg/devices \u003e /dev/null\ndone\n\nSigned-off-by: Jan Blunck \u003cj.blunck@tu-harburg.de\u003e\nAcked-by: James Bottomley \u003cJames.Bottomley@steeleye.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@osdl.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@osdl.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "51292f269ce52c0fb034d6e77485b532adcb217b",
      "old_mode": 33188,
      "old_path": "drivers/scsi/sg.c",
      "new_id": "e822ca0e97cf441ca7ea407266dec3a8aee132f9",
      "new_mode": 33188,
      "new_path": "drivers/scsi/sg.c"
    }
  ]
}
