http://bugzilla.novell.com/show_bug.cgi?id=564735 http://bugzilla.novell.com/show_bug.cgi?id=564735#c0 Summary: attr: memory leak Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bphilips@novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- Hi, Stanse found this error in attr of OS 11.2: Leaving function and only reference to valid memory is lost here.[text] static int attr_parse_attr_conf(struct error_context *ctx) { char *text, *t; size_t size_guess = 4096, len; FILE *file; char *pattern = ((void *)0); struct attr_action *new; int action; if (attr_actions) return 0; repeat: text = malloc(size_guess + 1); if (!text) goto fail; if ((file = fopen("/etc/xattr.conf", "r")) == ((void *)0)) { if ((*__errno_location ()) == 2) return 0; goto fail; } repeat: text = malloc(size_guess + 1); if (!text) goto fail; if ((file = fopen("/etc/xattr.conf", "r")) == ((void *)0)) { if ((*__errno_location ()) == 2) return 0; <-- here goto fail; } -- 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.