aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-30 21:42:10 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-30 21:42:10 +0000
commit4a9e2610bde0a3f3899ec3b114e712c81978e962 (patch)
tree62a2465d1a8838b9da785ebb85014515efd2287e /src/datastore
parentffa0156860c584608db5bde1038e127c6e8fda21 (diff)
downloadgnunet-4a9e2610bde0a3f3899ec3b114e712c81978e962.tar.gz
gnunet-4a9e2610bde0a3f3899ec3b114e712c81978e962.zip
nitpicks
Diffstat (limited to 'src/datastore')
-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 54bdde542..a5f4b2c4b 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -992,6 +992,7 @@ postgres_iterate (struct Plugin *plugin,
992 iter (iter_cls, 992 iter (iter_cls,
993 NULL, NULL, 0, NULL, 0, 0, 0, 993 NULL, NULL, 0, NULL, 0, 0, 0,
994 GNUNET_TIME_UNIT_ZERO_ABS, 0); 994 GNUNET_TIME_UNIT_ZERO_ABS, 0);
995 GNUNET_free (nrc);
995 return; 996 return;
996 } 997 }
997 nrc->bnow = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()).value__; 998 nrc->bnow = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()).value__;
@@ -1161,6 +1162,7 @@ postgres_plugin_get (void *cls,
1161 iter (iter_cls, 1162 iter (iter_cls,
1162 NULL, NULL, 0, NULL, 0, 0, 0, 1163 NULL, NULL, 0, NULL, 0, 0, 0,
1163 GNUNET_TIME_UNIT_ZERO_ABS, 0); 1164 GNUNET_TIME_UNIT_ZERO_ABS, 0);
1165 GNUNET_free (nrc);
1164 return; 1166 return;
1165 } 1167 }
1166 if ((PQntuples (ret) != 1) || 1168 if ((PQntuples (ret) != 1) ||
@@ -1172,6 +1174,7 @@ postgres_plugin_get (void *cls,
1172 iter (iter_cls, 1174 iter (iter_cls,
1173 NULL, NULL, 0, NULL, 0, 0, 0, 1175 NULL, NULL, 0, NULL, 0, 0, 0,
1174 GNUNET_TIME_UNIT_ZERO_ABS, 0); 1176 GNUNET_TIME_UNIT_ZERO_ABS, 0);
1177 GNUNET_free (nrc);
1175 return; 1178 return;
1176 } 1179 }
1177 nrc->total = GNUNET_ntohll (*(const unsigned long long *) PQgetvalue (ret, 0, 0)); 1180 nrc->total = GNUNET_ntohll (*(const unsigned long long *) PQgetvalue (ret, 0, 0));
@@ -1181,6 +1184,7 @@ postgres_plugin_get (void *cls,
1181 iter (iter_cls, 1184 iter (iter_cls,
1182 NULL, NULL, 0, NULL, 0, 0, 0, 1185 NULL, NULL, 0, NULL, 0, 0, 0,
1183 GNUNET_TIME_UNIT_ZERO_ABS, 0); 1186 GNUNET_TIME_UNIT_ZERO_ABS, 0);
1187 GNUNET_free (nrc);
1184 return; 1188 return;
1185 } 1189 }
1186 nrc->off = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, 1190 nrc->off = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,