[Bug 537633] New: btrfsprogs-0.19-3.4: memory leak
http://bugzilla.novell.com/show_bug.cgi?id=537633 Summary: btrfsprogs-0.19-3.4: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package btrfsprogs-0.19-3.4 For source code file btrfs-progs-0.19/disk-io.c around line 430, function find_and_setup_log_root, is the following code u64 blocknr = btrfs_super_log_root(disk_super); struct btrfs_root *log_root = malloc(sizeof(struct btrfs_root)); if (blocknr == 0) return 0; If the return is taken, then the malloc causes a memory leak. Suggest new code u64 blocknr = btrfs_super_log_root(disk_super); struct btrfs_root *log_root; if (blocknr == 0) return 0; log_root = malloc(sizeof(struct btrfs_root)); -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537633
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=537633
User dmueller@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537633#c1
Dirk Mueller
http://bugzilla.novell.com/show_bug.cgi?id=537633
User dmueller@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537633#c2
--- Comment #2 from Dirk Mueller
http://bugzilla.novell.com/show_bug.cgi?id=537633
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537633#c3
--- Comment #3 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=537633
http://bugzilla.novell.com/show_bug.cgi?id=537633#c4
Dirk Mueller
participants (1)
-
bugzilla_noreply@novell.com