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
@ -231,8 +231,7 @@ pci_parse_slot(char *opt)
|
|||||||
si->si_funcs[fnum].fi_param = config;
|
si->si_funcs[fnum].fi_param = config;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (error)
|
free(str);
|
||||||
free(str);
|
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user