summaryrefslogtreecommitdiff
path: root/radsecproxy.c
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
commit874e5b1209b31e33e3ea64146d559bee5df36e46 (patch)
treee865b652740a044d241931ff507e079478634397 /radsecproxy.c
parent78df329e73ab2c618089e73bdb8830c362fec196 (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/trunk@439 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 6337e57..7edc949 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;
}