Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH] module api: fix asan failures in test
@ 2020-10-16 16:57 Timur Safin
  2020-10-16 17:17 ` Alexander V. Tikhonov
  2020-10-17  5:17 ` Kirill Yukhin
  0 siblings, 2 replies; 3+ messages in thread
From: Timur Safin @ 2020-10-16 16:57 UTC (permalink / raw)
  To: alexander.turenko, avtikhon; +Cc: tarantool-patches

Adding forgotten resource cleanup to the
`test_tuple_validate_formatted` test, to make ASAN
happy again.

Closes #5432
Relates to #5384
---

Branch is tsafin/gh-5432-module-api-asan-fix

 test/app-tap/module_api.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/app-tap/module_api.c b/test/app-tap/module_api.c
index 7ca0c9a15..ce7fa2353 100644
--- a/test/app-tap/module_api.c
+++ b/test/app-tap/module_api.c
@@ -2327,6 +2327,8 @@ test_tuple_validate_formatted(lua_State *L)
 		assert(format);
 
 		valid = box_tuple_validate(tuple, format) == 0;
+		box_tuple_format_unref(format);
+		box_key_def_delete(key_defs[0]);
 	}
 	lua_pushboolean(L, valid);
 
-- 
2.20.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-17  5:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 16:57 [Tarantool-patches] [PATCH] module api: fix asan failures in test Timur Safin
2020-10-16 17:17 ` Alexander V. Tikhonov
2020-10-17  5:17 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox