Skip to content

Commit

Permalink
Properly ref count tubes; fixes crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Rarick committed Apr 16, 2008
1 parent d8ffaa8 commit 60c0cb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions job.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ job_copy(job j)

memcpy(n, j, sizeof(struct job) + j->body_size);
n->next = n->prev = n; /* not in a linked list */

n->tube = 0; /* Don't use memcpy for the tube, which we must refcount. */
TUBE_ASSIGN(n->tube, j->tube);

return n;
Expand Down

0 comments on commit 60c0cb7

Please sign in to comment.