summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-24 19:41:42 +0100
committerserg@serg.mylan <>2005-01-24 19:41:42 +0100
commitc76405a7ee4f7ceb928c6d09d9704f028d6dde6b (patch)
tree0c73a61f5c88d003eae464001af7656745e9ba4e /tests
parent24468e48f32fb7f5d4e76047acb2e892ffd3825f (diff)
parent1ca9d6497b7c3c276387470fce52e6b1cadc4f67 (diff)
downloadmariadb-git-c76405a7ee4f7ceb928c6d09d9704f028d6dde6b.tar.gz
merged
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 8be970aed29..3cbc9918d6c 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -11406,6 +11406,12 @@ static void test_bug5194()
if (bind == 0 || query == 0 || param_str == 0)
{
fprintf(stderr, "Can't allocate enough memory for query structs\n");
+ if (bind)
+ free(bind);
+ if (query)
+ free(query);
+ if (param_str)
+ free(param_str);
return;
}