diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-09 15:39:57 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-09 15:39:57 +0000 |
commit | 7c6eeca83081852d0eb323af94da3b2001357538 (patch) | |
tree | 7996e3f116025cb481b7ecd262b38769abc3c968 /src/include/gnunet_my_lib.h | |
parent | a970e9d70979c0e378a009791dc9da6c029f8526 (diff) | |
download | gnunet-7c6eeca83081852d0eb323af94da3b2001357538.tar.gz gnunet-7c6eeca83081852d0eb323af94da3b2001357538.zip |
fix memory leak
Diffstat (limited to 'src/include/gnunet_my_lib.h')
-rw-r--r-- | src/include/gnunet_my_lib.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/gnunet_my_lib.h b/src/include/gnunet_my_lib.h index 534a4db40..ddccbd56e 100644 --- a/src/include/gnunet_my_lib.h +++ b/src/include/gnunet_my_lib.h | |||
@@ -73,7 +73,7 @@ typedef int | |||
73 | */ | 73 | */ |
74 | typedef void | 74 | typedef void |
75 | (*GNUNET_MY_QueryCleanup)(void *cls, | 75 | (*GNUNET_MY_QueryCleanup)(void *cls, |
76 | struct GNUNET_MY_QueryParam *qp); | 76 | MYSQL_BIND *qbind); |
77 | /** | 77 | /** |
78 | * Information we pass to #GNUNET_MY_exec_prepared() to | 78 | * Information we pass to #GNUNET_MY_exec_prepared() to |
79 | * initialize the arguments of the prepared statement. | 79 | * initialize the arguments of the prepared statement. |
@@ -146,7 +146,7 @@ GNUNET_MY_query_param_fixed_size (const void *ptr, | |||
146 | int | 146 | int |
147 | GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc, | 147 | GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc, |
148 | struct GNUNET_MYSQL_StatementHandle *sh, | 148 | struct GNUNET_MYSQL_StatementHandle *sh, |
149 | const struct GNUNET_MY_QueryParam *params); | 149 | struct GNUNET_MY_QueryParam *params); |
150 | 150 | ||
151 | 151 | ||
152 | /** | 152 | /** |
@@ -470,7 +470,8 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
470 | * @param qp query specification to clean up | 470 | * @param qp query specification to clean up |
471 | */ | 471 | */ |
472 | void | 472 | void |
473 | GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp); | 473 | GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp, |
474 | MYSQL_BIND *qbind); | ||
474 | 475 | ||
475 | 476 | ||
476 | /** | 477 | /** |