aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2010-08-30 21:42:10 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2010-08-30 21:42:10 +0000
commitea511080b19433bc15e20d7840803431fac2d217 (patch)
tree62a2465d1a8838b9da785ebb85014515efd2287e /src/datastore/plugin_datastore_postgres.c
parent75d750bd775cd9546063422573fb94696d2ec51d (diff)
nitpicks
git-svn-id: https://gnunet.org/svn/gnunet@12773 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 54bdde5422..a5f4b2c4b8 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -992,6 +992,7 @@ postgres_iterate (struct Plugin *plugin,
iter (iter_cls,
NULL, NULL, 0, NULL, 0, 0, 0,
GNUNET_TIME_UNIT_ZERO_ABS, 0);
+ GNUNET_free (nrc);
return;
}
nrc->bnow = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()).value__;
@@ -1161,6 +1162,7 @@ postgres_plugin_get (void *cls,
iter (iter_cls,
NULL, NULL, 0, NULL, 0, 0, 0,
GNUNET_TIME_UNIT_ZERO_ABS, 0);
+ GNUNET_free (nrc);
return;
}
if ((PQntuples (ret) != 1) ||
@@ -1172,6 +1174,7 @@ postgres_plugin_get (void *cls,
iter (iter_cls,
NULL, NULL, 0, NULL, 0, 0, 0,
GNUNET_TIME_UNIT_ZERO_ABS, 0);
+ GNUNET_free (nrc);
return;
}
nrc->total = GNUNET_ntohll (*(const unsigned long long *) PQgetvalue (ret, 0, 0));
@@ -1181,6 +1184,7 @@ postgres_plugin_get (void *cls,
iter (iter_cls,
NULL, NULL, 0, NULL, 0, 0, 0,
GNUNET_TIME_UNIT_ZERO_ABS, 0);
+ GNUNET_free (nrc);
return;
}
nrc->off = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,