commit | 2d8d7ef272db06783989f77ba1ed80aa0f4d2dfd | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Thu Jun 15 14:18:09 2023 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Thu Jun 15 14:18:09 2023 +0200 |
tree | 652eb96f74f82a77791cf5756db8d947eaf48e04 | |
parent | f28cf0f1e51c7554d590cbec56abac46b4a44b4e [diff] |
Plug memory leak in plist_write_to_stream() Thanks @beyonik for pointing this out!
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 @@ if (fwrite(output, 1, length, stream) < length) { err = PLIST_ERR_IO; } + free(output); } return err; }