Date: Mon, 16 Apr 2001 23:48:28 -0700 (PDT) From: Matthew Braithwaite <matt@braithwaite.net> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/28283: Missed free() in init(8):clean_ttys Message-ID: <20010417064828.B0FCB5C79@limekiller.braithwaite.net>
index | next in thread | raw e-mail
>Number: 28283
>Category: misc
>Synopsis: Due to apparent typo, result of strdup not freed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 19 15:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Matthew Braithwaite
>Release: FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:
>Description:
This sure looks like a typo to me:
*** init.c Mon Jul 31 23:49:06 2000
--- /tmp/init.c Mon Apr 16 23:45:22 2001
***************
*** 1401,1407 ****
}
if (old_getty)
free(old_getty);
! if (old_getty)
free(old_window);
if (old_type)
free(old_type);
--- 1401,1407 ----
}
if (old_getty)
free(old_getty);
! if (old_window)
free(old_window);
if (old_type)
free(old_type);
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010417064828.B0FCB5C79>
