diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-17 19:38:50 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-17 19:38:53 +0100 |
commit | c24030b2d9b47c7c3d9076d46e1a5efa71d2270e (patch) | |
tree | 8f529bc5c120d2cfda2b1e8217e3eefb5c8ab07d | |
parent | 749a3f960acd4074dd75e2075757341f76d0e00c (diff) | |
download | gnunet-c24030b2d9b47c7c3d9076d46e1a5efa71d2270e.tar.gz gnunet-c24030b2d9b47c7c3d9076d46e1a5efa71d2270e.zip |
explain GNUNET_JSON_parse_free() better
m--------- | contrib/gana | 0 | ||||
m--------- | contrib/handbook | 0 | ||||
-rw-r--r-- | src/include/gnunet_json_lib.h | 8 | ||||
-rw-r--r-- | src/service/testing/Makefile.am | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/contrib/gana b/contrib/gana | |||
Subproject 9eddc2cf7b65bb43d285c75ef22fd9bc9cc7020 | Subproject 0ff4edfe76be77a59d4ebff5031feb50f3ba07d | ||
diff --git a/contrib/handbook b/contrib/handbook | |||
Subproject e5b42badb7450aee5367e70294a0f8b1595945e | Subproject 5c20e0aaa95c7cebc225d02231221d18fdcbdb5 | ||
diff --git a/src/include/gnunet_json_lib.h b/src/include/gnunet_json_lib.h index c3204026b..203976b5c 100644 --- a/src/include/gnunet_json_lib.h +++ b/src/include/gnunet_json_lib.h | |||
@@ -142,7 +142,13 @@ GNUNET_JSON_parse (const json_t *root, | |||
142 | 142 | ||
143 | /** | 143 | /** |
144 | * Frees all elements allocated during a #GNUNET_JSON_parse() | 144 | * Frees all elements allocated during a #GNUNET_JSON_parse() |
145 | * operation. | 145 | * operation. Convenience function to be called if cleaning |
146 | * up all heap-allocated data from a #GNUNET_JSON_parse() is | ||
147 | * desired. The function does not have to be called if no data | ||
148 | * was heap-allocated (e.g. only integers, strings and fixed-sized | ||
149 | * data was used), or if the application calls the respective | ||
150 | * code to free the heap (not always #GNUNET_free(), depends | ||
151 | * on the data type!) on the returned heap-allocated data itself. | ||
146 | * | 152 | * |
147 | * @param spec specification of the parse operation | 153 | * @param spec specification of the parse operation |
148 | */ | 154 | */ |
diff --git a/src/service/testing/Makefile.am b/src/service/testing/Makefile.am index 3bad23f95..5cd4aae9b 100644 --- a/src/service/testing/Makefile.am +++ b/src/service/testing/Makefile.am | |||
@@ -96,7 +96,7 @@ test_testing_start_with_config_SOURCES = \ | |||
96 | test_testing_start_with_config_LDADD = \ | 96 | test_testing_start_with_config_LDADD = \ |
97 | libgnunettesting.la \ | 97 | libgnunettesting.la \ |
98 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | 98 | $(top_builddir)/src/lib/util/libgnunetutil.la \ |
99 | $(top_builddir)/src/lib/hello/libgnunethello.la | 99 | $(top_builddir)/src/lib/hello/libgnunethello.la |
100 | 100 | ||
101 | test_testing_portreservation_SOURCES = \ | 101 | test_testing_portreservation_SOURCES = \ |
102 | test_testing_portreservation.c | 102 | test_testing_portreservation.c |