Fix a few small memory leaks.
This commit is contained in:
parent
52ded09d17
commit
5672863e59
3 changed files with 6 additions and 3 deletions
|
|
@ -242,8 +242,6 @@ bool ans_key_h(connection_t *c) {
|
|||
|
||||
/* Update our copy of the origin's packet key */
|
||||
from->outkey = xrealloc(from->outkey, strlen(key) / 2);
|
||||
|
||||
from->outkey = xstrdup(key);
|
||||
from->outkeylength = strlen(key) / 2;
|
||||
hex2bin(key, from->outkey, from->outkeylength);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue