We must free the variable str.

Spotted by:	clang's static analyzer
Submitted by:	Tom Rix <trix_juniper.net>
Reviewed by:	grehan
MFC after:	4 weeks
Sponsored by:	iXsystems Inc.
Differential Revision:	https://reviews.freebsd.org/D10009
This commit is contained in:
Marcelo Araujo 2018-05-22 04:08:08 +00:00
parent 1a3eaf6cc8
commit b5e3928d6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334016

View File

@ -231,8 +231,7 @@ pci_parse_slot(char *opt)
si->si_funcs[fnum].fi_param = config;
done:
if (error)
free(str);
free(str);
return (error);
}