Fix a few small memory leaks.

This commit is contained in:
Guus Sliepen 2011-12-03 21:59:47 +01:00
parent 52ded09d17
commit 5672863e59
3 changed files with 6 additions and 3 deletions

View file

@ -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);