fix two memory leaks

closes #210

Change-Id: I786345342f415a5fbe7fa361e2961e0399f55b67
(cherry picked from commit b85a9e398c)
mr4.2.2
Richard Fuchs 10 years ago
parent 9c6089ef60
commit d4f25b33c0

@ -2218,6 +2218,7 @@ static void __call_free(void *p) {
g_hash_table_destroy(c->tags);
g_hash_table_destroy(c->viabranches);
g_queue_clear(&c->medias);
g_queue_clear(&c->endpoint_maps);
while (c->streams.head) {
ps = g_queue_pop_head(&c->streams);

@ -1428,6 +1428,7 @@ struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, const struct lo
sfd->call = obj_get(call);
sfd->local_intf = lif;
g_queue_push_tail(&call->stream_fds, sfd); /* hand over ref */
g_slice_free1(sizeof(*fd), fd); /* moved into sfd, thus free */
__C_DBG("stream_fd_new localport=%d", sfd->socket.local.port);

Loading…
Cancel
Save