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:
parent
1a3eaf6cc8
commit
b5e3928d6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334016
@ -231,7 +231,6 @@ pci_parse_slot(char *opt)
|
||||
si->si_funcs[fnum].fi_param = config;
|
||||
|
||||
done:
|
||||
if (error)
|
||||
free(str);
|
||||
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user