diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-10 09:19:27 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-10 09:19:27 +0000 |
commit | 2f1634060e7d4aab5ff046ca50f1e21bae7471fb (patch) | |
tree | 2b63edc9fede9734c61578fc932df18251b3772f /src/my | |
parent | 7c6eeca83081852d0eb323af94da3b2001357538 (diff) | |
download | gnunet-2f1634060e7d4aab5ff046ca50f1e21bae7471fb.tar.gz gnunet-2f1634060e7d4aab5ff046ca50f1e21bae7471fb.zip |
finish to fix memory leak
Diffstat (limited to 'src/my')
-rw-r--r-- | src/my/test_my.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/my/test_my.c b/src/my/test_my.c index defaf6cbc..a375a76fa 100644 --- a/src/my/test_my.c +++ b/src/my/test_my.c | |||
@@ -75,6 +75,9 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
75 | u32 = 32; | 75 | u32 = 32; |
76 | u64 = 64; | 76 | u64 = 64; |
77 | 77 | ||
78 | memset (&hc, 0, sizeof(hc)); | ||
79 | memset (&hc2, 0, sizeof(hc2)); | ||
80 | |||
78 | statements_handle_insert = GNUNET_MYSQL_statement_prepare (context, | 81 | statements_handle_insert = GNUNET_MYSQL_statement_prepare (context, |
79 | "INSERT INTO test_my2 (" | 82 | "INSERT INTO test_my2 (" |
80 | " pub" | 83 | " pub" |
@@ -205,8 +208,8 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
205 | int | 208 | int |
206 | main (int argc, const char * const argv[]) | 209 | main (int argc, const char * const argv[]) |
207 | { | 210 | { |
208 | struct GNUNET_CONFIGURATION_Handle *config; | 211 | struct GNUNET_CONFIGURATION_Handle *config = NULL; |
209 | struct GNUNET_MYSQL_Context *context; | 212 | struct GNUNET_MYSQL_Context *context = NULL; |
210 | int ret; | 213 | int ret; |
211 | 214 | ||
212 | GNUNET_log_setup ( "test-my", | 215 | GNUNET_log_setup ( "test-my", |