summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-07-30 21:07:06 +0200
committerLinus Nordberg <linus@nordu.net>2017-07-30 21:07:06 +0200
commitaaca6f5d45aa03367367897aa1201326ec691fa9 (patch)
treefe64bddd6a86c45df536fe3f0e78289b087db2e0 /radsecproxy.c
parent1afa7394f74134285baea24c23ef858b4ab78eff (diff)
Free 'in' in success case too.
coverity: 1449514
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 45508a8..7c45751 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1066,6 +1066,7 @@ int dorewritemodattr(struct tlv *attr, struct modattr *modattr) {
i++;
}
}
+ free(in);
memcpy(attr->v + reslen, out + start, i - start);
return 1;