diff options
| author | 2019-11-07 02:59:05 +0100 | |
|---|---|---|
| committer | 2019-11-07 02:59:05 +0100 | |
| commit | 4d4586903b4cbab8b307a406e894e34b4b19a723 (patch) | |
| tree | 8fe811f8c1c00dc1215011728c96bdb98a8874b9 /src/bplist.c | |
| parent | b7c802f1b7cdf8a271b148d4375c4309aefc5e0d (diff) | |
| download | libplist-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/bplist.c')
| -rw-r--r-- | src/bplist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c index e0e7622..f0b8f0e 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -1379,3 +1379,8 @@ PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) | |||
| 1379 | bplist_buff->data = NULL; // make sure we don't free the output buffer | 1379 | bplist_buff->data = NULL; // make sure we don't free the output buffer |
| 1380 | byte_array_free(bplist_buff); | 1380 | byte_array_free(bplist_buff); |
| 1381 | } | 1381 | } |
| 1382 | |||
| 1383 | PLIST_API void plist_to_bin_free(char *plist_bin) | ||
| 1384 | { | ||
| 1385 | free(plist_bin); | ||
| 1386 | } | ||
