Commit 0f3b450d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Memleak in Windows Logical Disk Manager partition

Patch from Oleg Drokin <green@linuxhacker.ru>

   Not freeing allocated memory on error exit path.
parent 0c68742b
......@@ -1162,8 +1162,10 @@ static BOOL ldm_ldmdb_add (u8 *data, int len, struct ldmdb *ldb)
return FALSE;
}
if (!ldm_parse_vblk (data, len, vb))
if (!ldm_parse_vblk (data, len, vb)) {
kfree(vb);
return FALSE; /* Already logged */
}
/* Put vblk into the correct list. */
switch (vb->type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment