Date: Wed, 22 May 2019 07:53:57 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238042] Potential memory leak in fts_build of lib/libc/gen/fts-compat.c Message-ID: <bug-238042-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238042 Bug ID: 238042 Summary: Potential memory leak in fts_build of lib/libc/gen/fts-compat.c Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: yangx92@hotmail.com There is a potential memory leak in fts_build of lib/libc/gen/fts-compat.c, which is the same as bug that was fixed in https://github.com/freebsd/freebsd/commit/ccdcef45ea7587b77198e50c3e9d11f80e9378f0. fts_build(FTS *sp, int type) { struct freebsd11_dirent *dp; FTSENT *p, *head; ... if (descend && (type == BCHILD || !nitems) && (cur->fts_level == FTS_ROOTLEVEL ? FCHDIR(sp, sp->fts_rfd) : fts_safe_changedir(sp, cur->fts_parent, -1, ".."))) { cur->fts_info = FTS_ERR; SET(FTS_STOP); return (NULL); //memory leak here } if (!nitems) { if (type == BREAD) cur->fts_info = FTS_DP; return (NULL); //memory leak here } ... } -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238042-227>
