diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 6 |
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; } |