diff options
Diffstat (limited to 'src/include/gnunet_json_lib.h')
-rw-r--r-- | src/include/gnunet_json_lib.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 | */ |