projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix memleak
[oweals/gnunet.git]
/
src
/
namestore
/
test_namestore_api_create_update.c
diff --git
a/src/namestore/test_namestore_api_create_update.c
b/src/namestore/test_namestore_api_create_update.c
index f3cc3917f27ecea1fc2645504851be8e4bcb6ed5..1601b39d80b093165e48e1808c9469b89f9c715f 100644
(file)
--- a/
src/namestore/test_namestore_api_create_update.c
+++ b/
src/namestore/test_namestore_api_create_update.c
@@
-43,7
+43,7
@@
#define TEST_CREATE_RECORD_DATA 'b'
#define TEST_CREATE_RECORD_DATA 'b'
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10
0
)
static struct GNUNET_NAMESTORE_Handle * nsh;
static struct GNUNET_NAMESTORE_Handle * nsh;
@@
-77,7
+77,7
@@
static void
endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
if (nsh != NULL)
endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
if (nsh != NULL)
- GNUNET_NAMESTORE_disconnect (nsh
, GNUNET_YES
);
+ GNUNET_NAMESTORE_disconnect (nsh);
nsh = NULL;
if (privkey != NULL)
GNUNET_CRYPTO_rsa_key_free (privkey);
nsh = NULL;
if (privkey != NULL)
GNUNET_CRYPTO_rsa_key_free (privkey);
@@
-101,7
+101,7
@@
end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_CRYPTO_rsa_key_free (privkey);
privkey = NULL;
if (nsh != NULL)
GNUNET_CRYPTO_rsa_key_free (privkey);
privkey = NULL;
if (nsh != NULL)
- GNUNET_NAMESTORE_disconnect (nsh
, GNUNET_YES
);
+ GNUNET_NAMESTORE_disconnect (nsh);
nsh = NULL;
}
nsh = NULL;
}