Fix memory leak

This commit is contained in:
KillTheMule 2018-01-29 19:50:45 +01:00
parent ec215a1962
commit 995a2fad8c

View File

@ -98,6 +98,11 @@ void liveupdate_unregister(buf_T *buf, uint64_t channelid)
// make a new copy of the active array without the channelid in it
liveupdate_send_end(buf, channelid);
if (found == size) {
kv_destroy(buf->liveupdate_channels);
kv_init(buf->liveupdate_channels);
}
}
}