diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-15 21:52:19 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-15 21:53:09 +0200 |
commit | 39b3e3cb3874b7827e6c5cc655cf47d5d1f33aa7 (patch) | |
tree | 9b465836fd7e3f2f06f6cd36fbf508447dc668b3 /src/rss.c | |
parent | 3e75758eb85777c77e5ca952583a9dd370fd5ca5 (diff) |
Fix segfault on torrent add, fix corruption of rss json downloaded item
Diffstat (limited to 'src/rss.c')
-rw-r--r-- | src/rss.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -498,7 +498,7 @@ static int add_torrents_in_reverse(TransmissionSession *transmission_session, Bu result = tracked_item_update_latest(&tracked_item, rss_tracked_dir, added_download_items, torrent_names, torrent_name_index); for(int i = 0; i < torrent_name_index; ++i) { - free(torrent_names[torrent_name_index]); + free(torrent_names[i]); } buffer_deinit(&json_element_buffer); |