* disk-io.c (open_ctree): avoid leaks
@ 2008-09-09 14:40 Jim Meyering
0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2008-09-09 14:40 UTC (permalink / raw)
To: linux-btrfs
These two variables (chunk_root and dev_root) that were not
tested for failed allocation weren't freed-upon-failure either:
changeset: 709:c40da2ab8c03
tag: tip
user: Jim Meyering <meyering@redhat.com>
date: Tue Sep 09 16:35:47 2008 +0200
files: disk-io.c
description:
disk-io.c (open_ctree): avoid leaks
diff --git a/disk-io.c b/disk-io.c
--- a/disk-io.c
+++ b/disk-io.c
@@ -1655,6 +1655,8 @@
bdi_destroy(&fs_info->bdi);
#endif
kfree(fs_info);
+ kfree(chunk_root);
+ kfree(dev_root);
return ERR_PTR(err);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-09 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09 14:40 disk-io.c (open_ctree): avoid leaks Jim Meyering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox