NetBSD-Bugs archive

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

bin/50923: src/usr.bin/infocmp/infocmp.c:643]: (error) Memory leak: terms



>Number:         50923
>Category:       bin
>Synopsis:       src/usr.bin/infocmp/infocmp.c:643]: (error) Memory leak: terms
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 09 11:10:01 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160308
>Organization:
>Environment:
>Description:

$ fgrep terms src/usr.bin/infocmp/infocmp.c | egrep "malloc|free"
	terms = malloc(sizeof(**terms) * nuse);
$ 

Suggest add missing call to free near end of routine use_terms.



>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index