mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 02:32:16 +01:00
Free buf when its no longer used. This helps eliminate a static analysis
warning. PR: ports/172566 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days
This commit is contained in:
parent
d1ea2c6674
commit
c969ca9408
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241847
@ -207,6 +207,8 @@ randomize_fd(int fd, int type, int unique, double denom)
|
||||
goto make_token;
|
||||
}
|
||||
|
||||
free(buf);
|
||||
|
||||
for (i = numnode; i > 0; i--) {
|
||||
selected = random() % numnode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user