diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
commit | e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch) | |
tree | 61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/pq | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_connect.c | 16 | ||||
-rw-r--r-- | src/pq/pq_prepare.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c index 8da273b2b..405dca174 100644 --- a/src/pq/pq_connect.c +++ b/src/pq/pq_connect.c | |||
@@ -125,7 +125,7 @@ GNUNET_PQ_connect (const char *config_str, | |||
125 | GNUNET_PQ_reconnect (db); | 125 | GNUNET_PQ_reconnect (db); |
126 | if (NULL == db->conn) | 126 | if (NULL == db->conn) |
127 | { | 127 | { |
128 | GNUNET_free_non_null (db->load_path); | 128 | GNUNET_free (db->load_path); |
129 | GNUNET_free (db->config_str); | 129 | GNUNET_free (db->config_str); |
130 | GNUNET_free (db); | 130 | GNUNET_free (db); |
131 | return NULL; | 131 | return NULL; |
@@ -495,9 +495,9 @@ GNUNET_PQ_connect_with_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
495 | load_path, | 495 | load_path, |
496 | es, | 496 | es, |
497 | ps); | 497 | ps); |
498 | GNUNET_free_non_null (load_path); | 498 | GNUNET_free (load_path); |
499 | GNUNET_free_non_null (sp); | 499 | GNUNET_free (sp); |
500 | GNUNET_free_non_null (conninfo); | 500 | GNUNET_free (conninfo); |
501 | return db; | 501 | return db; |
502 | } | 502 | } |
503 | 503 | ||
@@ -511,10 +511,10 @@ GNUNET_PQ_connect_with_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
511 | void | 511 | void |
512 | GNUNET_PQ_disconnect (struct GNUNET_PQ_Context *db) | 512 | GNUNET_PQ_disconnect (struct GNUNET_PQ_Context *db) |
513 | { | 513 | { |
514 | GNUNET_free_non_null (db->es); | 514 | GNUNET_free (db->es); |
515 | GNUNET_free_non_null (db->ps); | 515 | GNUNET_free (db->ps); |
516 | GNUNET_free_non_null (db->load_path); | 516 | GNUNET_free (db->load_path); |
517 | GNUNET_free_non_null (db->config_str); | 517 | GNUNET_free (db->config_str); |
518 | PQfinish (db->conn); | 518 | PQfinish (db->conn); |
519 | GNUNET_free (db); | 519 | GNUNET_free (db); |
520 | } | 520 | } |
diff --git a/src/pq/pq_prepare.c b/src/pq/pq_prepare.c index b7003fb69..63087456f 100644 --- a/src/pq/pq_prepare.c +++ b/src/pq/pq_prepare.c | |||
@@ -83,7 +83,7 @@ GNUNET_PQ_prepare_statements (struct GNUNET_PQ_Context *db, | |||
83 | memcpy (&rps[olen], | 83 | memcpy (&rps[olen], |
84 | ps, | 84 | ps, |
85 | nlen * sizeof (struct GNUNET_PQ_PreparedStatement)); | 85 | nlen * sizeof (struct GNUNET_PQ_PreparedStatement)); |
86 | GNUNET_free_non_null (db->ps); | 86 | GNUNET_free (db->ps); |
87 | db->ps = rps; | 87 | db->ps = rps; |
88 | } | 88 | } |
89 | 89 | ||