From: Pavel Herrmann Date: Wed, 29 Aug 2012 16:46:49 +0200 Subject: [U-Boot] [BUG] disk drivers do not free private memory Message-ID: <3046042.aELZUyOuhe@merom> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, While implementing a loopback block device for the sandbox board, i have found an issue in block drivers. From what i can tell, none of the drivers ever free() their private data (that is sata_dev_desc[]->priv), some of them (dwc_ahsata, fsl_sata) do not even check if they are already inited. If i have one of these drivers, i can repeatedly do "sata init" until all my memory is leaked. Noone is stupid enough to do this, but it still shouldn't be possible. Best regards, Pavel Herrmann