diff options
author | tb <> | 2020-09-20 19:13:06 +0000 |
---|---|---|
committer | tb <> | 2020-09-20 19:13:06 +0000 |
commit | bbbce94f43affd45f1dfd72c669cb061c1cc01e5 (patch) | |
tree | d7ad4f2bd91d34ae759edabe90d77b3298da4c56 /src/usr.bin | |
parent | bef75f92760574525922f5ff9c66adf59413432e (diff) | |
download | openbsd-bbbce94f43affd45f1dfd72c669cb061c1cc01e5.tar.gz openbsd-bbbce94f43affd45f1dfd72c669cb061c1cc01e5.tar.bz2 openbsd-bbbce94f43affd45f1dfd72c669cb061c1cc01e5.zip |
Avoid memleak caused by shadowing
The outer scope in x509_constraints_extract_names() contains a vname
variable which will be freed on error, but an inner scope contains
another vname that won't be freed, e.g., if x509_constraints_names_add
fails.
Found by llvm scan-build.
ok beck
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions