diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-28 09:25:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-28 09:25:17 -0400 |
commit | a64d79ca4c5699be161a54d94e0e6c0f7d06db7c (patch) | |
tree | 5d0fa776b824fe9bd30014e92259c7d0805b3e34 /src/common/tortls.c | |
parent | 9727a9248a474909c0ad53be9d55cd39b69d0611 (diff) | |
download | tor-a64d79ca4c5699be161a54d94e0e6c0f7d06db7c.tar.gz tor-a64d79ca4c5699be161a54d94e0e6c0f7d06db7c.zip |
Move around some LCOV_EXCLs in src/common
Apparently, my compiler now generates coverage markers for
label-only lines, so we need to exclude those too if they are meant
to be unreachable.
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 8727b605b3..197c5e8d3b 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -444,8 +444,9 @@ tor_x509_name_new(const char *cname) goto error; /* LCOV_EXCL_BR_STOP */ return name; - error: + /* LCOV_EXCL_START : these lines will only execute on out of memory errors*/ + error: X509_NAME_free(name); return NULL; /* LCOV_EXCL_STOP */ |