summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-01-24 19:45:15 +0100
committerserg@serg.mylan <>2005-01-24 19:45:15 +0100
commitc33f1b6e635e5ac84afc8f36487ea1c5493bd41c (patch)
treebabf1800e221a6ac3575f7ec6daf42b08e68eb9a /tests
parent878e99e65d7176c4fbf4f42b5f29d8ade7b71611 (diff)
parent1ca9d6497b7c3c276387470fce52e6b1cadc4f67 (diff)
downloadmariadb-git-c33f1b6e635e5ac84afc8f36487ea1c5493bd41c.tar.gz
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index beaff795d0e..83f8f6ab143 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -10778,6 +10778,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;
}