Skip to content

Commit

Permalink
Plug memory leak in plist_write_to_stream()
Browse files Browse the repository at this point in the history
Thanks @beyonik for pointing this out!
  • Loading branch information
nikias committed Jun 15, 2023
1 parent f28cf0f commit 2d8d7ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,7 @@ plist_err_t plist_write_to_stream(plist_t plist, FILE *stream, plist_format_t fo
if (fwrite(output, 1, length, stream) < length) {
err = PLIST_ERR_IO;
}
free(output);
}
return err;
}
Expand Down

0 comments on commit 2d8d7ef

Please sign in to comment.