Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/event-log.c: fully clear compare_content pointer
coverity code scanning seems to be irritated by re-using freed compare_content without having fully cleared the pointer: >>> CID 1522445: (USE_AFTER_FREE) >>> Using freed pointer "compare_content". And for auto cleanup this is actually a problem, as detected by coverity, too: >>> CID 1522445: (USE_AFTER_FREE) >>> Calling "g_autoptr_cleanup_generic_gfree" frees pointer "compare_content" which has already been freed. Thus simply correctly free the pointer before reusing it. Signed-off-by: Enrico Joerns <[email protected]>
- Loading branch information