summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-07-30 21:07:06 +0200
committerLinus Nordberg <linus@nordu.net>2017-08-01 18:25:10 +0200
commit809c10eeac1df4719ab2a9a16105666da0b39f35 (patch)
tree6d2834262b0588b251cd78a6ebdfe763da6c9f2a
parentcc8fe7ffb1433e1f3ccf7ac67eda091818e612b7 (diff)
Free 'in' in success case too.
coverity: 1449514
-rw-r--r--radsecproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 4abd8a7..a62d3e6 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1063,6 +1063,7 @@ int dorewritemodattr(struct tlv *attr, struct modattr *modattr) {
i++;
}
}
+ free(in);
memcpy(attr->v + reslen, out + start, i - start);
return 1;