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/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238042 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/ccdcef45ea7587b77198e50c3e9d11f80= e9378f0. fts_build(FTS *sp, int type) { struct freebsd11_dirent *dp; FTSENT *p, *head; ... if (descend && (type =3D=3D BCHILD || !nitems) && (cur->fts_level =3D=3D FTS_ROOTLEVEL ? FCHDIR(sp, sp->fts_rfd) : fts_safe_changedir(sp, cur->fts_parent, -1, ".."))) { cur->fts_info =3D FTS_ERR; SET(FTS_STOP); return (NULL); //memory leak here } if (!nitems) { if (type =3D=3D BREAD) cur->fts_info =3D FTS_DP; return (NULL); //memory leak here } ... } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238042-227>