Skip to content

Commit

Permalink
Free 'in' in success case too.
Browse files Browse the repository at this point in the history
coverity: 1449514
  • Loading branch information
Linus Nordberg committed Aug 1, 2017
1 parent cc8fe7f commit 809c10e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 809c10e

Please sign in to comment.