Skip to content

Commit

Permalink
Clarify when to release
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Jul 19, 2020
1 parent 828784f commit 6d922d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ This token structure closely matches the JSON syntax. When decoding XML, the fol
char *echttp_parser_load (const char *file);
void echttp_parser_free (char *buffer);
```
These functions are used to load the entire content of a JSON or XML file in a buffer, before parsing the data. The buffer is dynamically allocated, and must be released.
These functions are used to load the entire content of a JSON or XML file in a buffer, before parsing the data. The buffer is dynamically allocated, and must be released once the data is no longer used. Because the parsed tokens rely on the buffer's content, the buffer should be released only after the tokens have been discarded.

```
int echttp_json_search (const ParserToken *parent, const char *path);
Expand Down

0 comments on commit 6d922d8

Please sign in to comment.