diff options
Diffstat (limited to 'src/my/test_my.c')
-rw-r--r-- | src/my/test_my.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/my/test_my.c b/src/my/test_my.c index d6e6141b7..aa02ad515 100644 --- a/src/my/test_my.c +++ b/src/my/test_my.c | |||
@@ -103,7 +103,10 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
103 | if (NULL == statements_handle_insert) | 103 | if (NULL == statements_handle_insert) |
104 | { | 104 | { |
105 | fprintf (stderr, "Failed to prepared statement INSERT\n"); | 105 | fprintf (stderr, "Failed to prepared statement INSERT\n"); |
106 | return 1; | 106 | GNUNET_CRYPTO_rsa_signature_free (sig); |
107 | GNUNET_CRYPTO_rsa_private_key_free (priv); | ||
108 | GNUNET_CRYPTO_rsa_public_key_free (pub); | ||
109 | return 1; | ||
107 | } | 110 | } |
108 | 111 | ||
109 | struct GNUNET_MY_QueryParam params_insert[] = { | 112 | struct GNUNET_MY_QueryParam params_insert[] = { |
@@ -126,6 +129,9 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
126 | params_insert)) | 129 | params_insert)) |
127 | { | 130 | { |
128 | fprintf (stderr, "Failed to execute prepared statement INSERT\n"); | 131 | fprintf (stderr, "Failed to execute prepared statement INSERT\n"); |
132 | GNUNET_CRYPTO_rsa_signature_free (sig); | ||
133 | GNUNET_CRYPTO_rsa_private_key_free (priv); | ||
134 | GNUNET_CRYPTO_rsa_public_key_free (pub); | ||
129 | return 1; | 135 | return 1; |
130 | } | 136 | } |
131 | 137 | ||
@@ -147,6 +153,9 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
147 | if (NULL == statements_handle_select) | 153 | if (NULL == statements_handle_select) |
148 | { | 154 | { |
149 | fprintf(stderr, "Failed to prepared statement SELECT\n"); | 155 | fprintf(stderr, "Failed to prepared statement SELECT\n"); |
156 | GNUNET_CRYPTO_rsa_signature_free (sig); | ||
157 | GNUNET_CRYPTO_rsa_private_key_free (priv); | ||
158 | GNUNET_CRYPTO_rsa_public_key_free (pub); | ||
150 | return 1; | 159 | return 1; |
151 | } | 160 | } |
152 | 161 | ||
@@ -159,6 +168,9 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
159 | params_select)) | 168 | params_select)) |
160 | { | 169 | { |
161 | fprintf (stderr, "Failed to execute prepared statement SELECT\n"); | 170 | fprintf (stderr, "Failed to execute prepared statement SELECT\n"); |
171 | GNUNET_CRYPTO_rsa_signature_free (sig); | ||
172 | GNUNET_CRYPTO_rsa_private_key_free (priv); | ||
173 | GNUNET_CRYPTO_rsa_public_key_free (pub); | ||
162 | return 1; | 174 | return 1; |
163 | } | 175 | } |
164 | 176 | ||