diff options
| author | 2021-12-19 02:43:36 +0100 | |
|---|---|---|
| committer | 2021-12-19 02:43:36 +0100 | |
| commit | c31beaaec196c26990139e3fc4f89f996d7b86e9 (patch) | |
| tree | 1cc44bd4f7d69924ba1e21df8bc2d9b1010f3090 /src/xplist.c | |
| parent | a9e34bd29ae9dcdae55bdf5fb8a23c9b1c02eee9 (diff) | |
| download | libplist-c31beaaec196c26990139e3fc4f89f996d7b86e9.tar.gz libplist-c31beaaec196c26990139e3fc4f89f996d7b86e9.tar.bz2 | |
Add new plist_mem_free() function
Thanks to @azerg for bringing this to my attention.
Instead of having multiple (internally identical) plist_*_free() functions,
this commit introduces a single plist_mem_free() that can be used to free
the memory allocated by plist_to_xml(), plist_to_bin(), plist_get_key_val(),
plist_get_string_val(), and plist_get_data_val().
Note: This commit REMOVES plist_to_bin_free() and plist_to_xml_free().
Diffstat (limited to 'src/xplist.c')
| -rw-r--r-- | src/xplist.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/xplist.c b/src/xplist.c index 2eaba55..c45a984 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -530,11 +530,6 @@ PLIST_API void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length) | |||
| 530 | str_buf_free(outbuf); | 530 | str_buf_free(outbuf); |
| 531 | } | 531 | } |
| 532 | 532 | ||
| 533 | PLIST_API void plist_to_xml_free(char *plist_xml) | ||
| 534 | { | ||
| 535 | free(plist_xml); | ||
| 536 | } | ||
| 537 | |||
| 538 | struct _parse_ctx { | 533 | struct _parse_ctx { |
| 539 | const char *pos; | 534 | const char *pos; |
| 540 | const char *end; | 535 | const char *end; |
