From ff85072026a2b2cefce2c460312998d99bad0015 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 11 Apr 2014 11:05:08 -0400 Subject: [PATCH] Use talloc_free. Fixes #582 --- src/modules/rlm_eap/libeap/eapsimlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rlm_eap/libeap/eapsimlib.c b/src/modules/rlm_eap/libeap/eapsimlib.c index f538fd1b7f07..f715fd9406c1 100644 --- a/src/modules/rlm_eap/libeap/eapsimlib.c +++ b/src/modules/rlm_eap/libeap/eapsimlib.c @@ -255,7 +255,7 @@ int map_eapsim_basictypes(RADIUS_PACKET *r, eap_packet_t *ep) fr_hmac_sha1(buffer, hmaclen, vp->vp_octets, vp->length, sha1digest); /* done with the buffer, free it */ - free(buffer); + talloc_free(buffer); /* now copy the digest to where it belongs in the AT_MAC */ /* note that it is truncated to 128-bits */