NetBSD-Bugs archive

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

lib/50919: src/lib/libform/type_enum.c:99]: (error) Memory leak: new



>Number:         50919
>Category:       lib
>Synopsis:       src/lib/libform/type_enum.c:99]: (error) Memory leak: new
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 10:55:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160308
>Organization:
>Environment:
>Description:
Source code is

        if (_formi_create_dbg_file() != E_OK)
            return NULL;

Suggest add call to free inside the if.

Also, in the same file:

[src/lib/libform/type_enum.c:110]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:118]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:175]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:175]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:190]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:190]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:255]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:294]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:303]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:338]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
[src/lib/libform/type_enum.c:346]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index