Skip to content

Commit

Permalink
Fix missing free() in 'decode-tacacs' decode
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira authored and alandekok committed Sep 7, 2019
1 parent 408350c commit 743793b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/unit_test_attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ do { \
len = encode_hex(p + 14, data, sizeof(data));
if (len == 0) {
fprintf(stderr, "Failed decoding hex string at line %d of %s\n", lineno, directory);
talloc_free(packet);
goto error;
}
}
Expand Down

0 comments on commit 743793b

Please sign in to comment.