NetBSD-Bugs archive

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

bin/50914: src/usr.bin/fgen/fgen.l:1306]: (error) Memory leak: alias



>Number:         50914
>Category:       bin
>Synopsis:       src/usr.bin/fgen/fgen.l:1306]: (error) Memory leak: alias
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 08 19:45:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160308
>Organization:
>Environment:
>Description:
Source code is

            alias = malloc(sizeof(*alias));
            alias->name = strdup(token->text);
            token = yylex();
            if (token == NULL) {
                (void)printf( "EOF in alias definition\n");
                return;
            }

Looks like some inadequate cleanup inside the if statement to me.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index