summaryrefslogtreecommitdiffstats
path: root/src/bplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-12-19 02:43:36 +0100
committerGravatar Nikias Bassen2021-12-19 02:43:36 +0100
commitc31beaaec196c26990139e3fc4f89f996d7b86e9 (patch)
tree1cc44bd4f7d69924ba1e21df8bc2d9b1010f3090 /src/bplist.c
parenta9e34bd29ae9dcdae55bdf5fb8a23c9b1c02eee9 (diff)
downloadlibplist-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/bplist.c')
-rw-r--r--src/bplist.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 455c34b..a41ce1a 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -1374,8 +1374,3 @@ PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length)
bplist_buff->data = NULL; // make sure we don't free the output buffer
byte_array_free(bplist_buff);
}
-
-PLIST_API void plist_to_bin_free(char *plist_bin)
-{
- free(plist_bin);
-}