NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/40233: make is broken.



>Number:         40233
>Category:       bin
>Synopsis:       make is broken.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 20 07:05:00 +0000 2008
>Originator:     Henning Petersen
>Release:        Netbsd-current
>Organization:
>Environment:
>Description:
Delete a free(buf) in usr.bin/make/main.c .
>How-To-Repeat:

>Fix:
 diff -u -r1.159 main.c
--- usr.bin/make/main.c 19 Dec 2008 22:03:41 -0000      1.159
+++ usr.bin/make/main.c 20 Dec 2008 06:16:26 -0000
@@ -603,7 +603,7 @@
                free(p1);
 
        argv = brk_string(buf, &argc, TRUE, &args);
-               free(buf);
+
        if (argv == NULL) {
                Error("Unterminated quoted string [%s]", buf);
                free(buf);



Home | Main Index | Thread Index | Old Index