From 4d4586903b4cbab8b307a406e894e34b4b19a723 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Nov 2019 02:59:05 +0100 Subject: Add plist_to_bin_free() and plist_to_xml_free() functions that free memory allocated by plist_to_bin()/plist_to_xml() --- src/xplist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/xplist.c') 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; -- cgit v1.1-32-gdbae