mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-01 07:20:13 +00:00
mkpasswd: fix a memory leak
This commit is contained in:
parent
0ba80dd8b3
commit
5120051324
@ -387,6 +387,7 @@ void generate_salt(char *const buf, const unsigned int len)
|
||||
for (i = 0; i < len; i++)
|
||||
buf[i] = valid_salts[entropy[i] % (sizeof valid_salts - 1)];
|
||||
buf[i] = '\0';
|
||||
free(entropy);
|
||||
}
|
||||
|
||||
#else /* RANDOM_DEVICE */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user