mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Change test_memeq macro to not leak memory. Addresses coverity CID 47.
svn:r17577
This commit is contained in:
parent
bb8d818e92
commit
3be88b2c70
@ -139,6 +139,8 @@ extern int have_failed;
|
|||||||
__LINE__, \
|
__LINE__, \
|
||||||
PRETTY_FUNCTION, \
|
PRETTY_FUNCTION, \
|
||||||
#expr1, #expr2, mem1, mem2); \
|
#expr1, #expr2, mem1, mem2); \
|
||||||
|
tor_free(mem1); \
|
||||||
|
tor_free(mem2); \
|
||||||
goto done; \
|
goto done; \
|
||||||
} STMT_END
|
} STMT_END
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user