summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-12-18 09:06:12 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-12-18 09:06:12 +0000
commit5266ba19a98f1f0ee67aba270fd6d104c8b14c81 (patch)
treeb73c3efbb10317590b8abbdb7af7fca3b58a6a2d
parentccf12f8e7cd1eb6513739805a32fc473a711ccf1 (diff)
now freeing buffer of outgoing request as soon as we give up sending request, rather than waiting until new request with same id
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.3@439 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index d11cc97..2cfc48d 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -942,6 +942,10 @@ void freerqoutdata(struct rqout *rqout) {
if (!rqout)
return;
if (rqout->rq) {
+ if (rqout->rq->buf) {
+ free(rqout->rq->buf);
+ rqout->rq->buf = NULL;
+ }
freerq(rqout->rq);
rqout->rq = NULL;
}