The variable nargv is allocated but never freed, so free it when the it

is no longer used.

Submitted by:	Thomas Rix <trix@juniper.net>
Reviewed by:	ed
Approved by:	sjg (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D9652
This commit is contained in:
stevek 2017-06-13 15:50:16 +00:00
parent 18607dc92f
commit c16bdc9b2c

View File

@ -371,6 +371,7 @@ net: for (p = nargv; *p;) {
printf("\n");
}
free(nargv);
free(used);
if (entries == 0)
return;