summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-11-07 02:59:05 +0100
committerGravatar Nikias Bassen2019-11-07 02:59:05 +0100
commit4d4586903b4cbab8b307a406e894e34b4b19a723 (patch)
tree8fe811f8c1c00dc1215011728c96bdb98a8874b9 /src/xplist.c
parentb7c802f1b7cdf8a271b148d4375c4309aefc5e0d (diff)
downloadlibplist-4d4586903b4cbab8b307a406e894e34b4b19a723.tar.gz
libplist-4d4586903b4cbab8b307a406e894e34b4b19a723.tar.bz2
Add plist_to_bin_free() and plist_to_xml_free() functions that free memory allocated by plist_to_bin()/plist_to_xml()
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c
index 0cf4663..fa6bb6d 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -531,6 +531,11 @@ PLIST_API void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length)
str_buf_free(outbuf);
}
+PLIST_API void plist_to_xml_free(char *plist_xml)
+{
+ free(plist_xml);
+}
+
struct _parse_ctx {
const char *pos;
const char *end;