diff options
| author | 2023-06-15 14:18:09 +0200 | |
|---|---|---|
| committer | 2023-06-15 14:18:09 +0200 | |
| commit | 2d8d7ef272db06783989f77ba1ed80aa0f4d2dfd (patch) | |
| tree | 652eb96f74f82a77791cf5756db8d947eaf48e04 | |
| parent | f28cf0f1e51c7554d590cbec56abac46b4a44b4e (diff) | |
| download | libplist-2d8d7ef272db06783989f77ba1ed80aa0f4d2dfd.tar.gz libplist-2d8d7ef272db06783989f77ba1ed80aa0f4d2dfd.tar.bz2 | |
Plug memory leak in plist_write_to_stream()
Thanks @beyonik for pointing this out!
| -rw-r--r-- | src/plist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c index d78f748..19279ed 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -1692,6 +1692,7 @@ plist_err_t plist_write_to_stream(plist_t plist, FILE *stream, plist_format_t fo | |||
| 1692 | if (fwrite(output, 1, length, stream) < length) { | 1692 | if (fwrite(output, 1, length, stream) < length) { |
| 1693 | err = PLIST_ERR_IO; | 1693 | err = PLIST_ERR_IO; |
| 1694 | } | 1694 | } |
| 1695 | free(output); | ||
| 1695 | } | 1696 | } |
| 1696 | return err; | 1697 | return err; |
| 1697 | } | 1698 | } |
