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:10:21 +0200
commit844ec06079f5276e15271eb66bc89d6d5acf04e2 (patch)
treefd87f47ef7b23afa53d6e447aa1c008d66495de8
parent001cb9c6a5d88d012036f79baaa625543eb54bc0 (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 9b3d5d2..5bd7642 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -990,6 +990,7 @@ int dorewritemodattr(struct tlv *attr, struct modattr *modattr) {
i++;
}
}
+ free(in);
memcpy(attr->v + reslen, out + start, i - start);
return 1;