Browse Source

fix two memory leaks

closes #210

Change-Id: I786345342f415a5fbe7fa361e2961e0399f55b67
pull/214/head
Richard Fuchs 10 years ago
parent
commit
b85a9e398c
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      daemon/call.c
  2. +1
    -0
      daemon/media_socket.c

+ 1
- 0
daemon/call.c View File

@ -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);


+ 1
- 0
daemon/media_socket.c View File

@ -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