Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Release our reference to the old (pre-copy) frame on partial.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Turner committed Aug 1, 2013
1 parent 496daf2 commit 54d1b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ int nitro_queue_fd_write(nitro_queue_t *q, int fd,
} while (actual_bytes && !done);

if (done) {
nitro_frame_destroy(fr);
++fwritten;
} else {
assert(!actual_bytes);
*remain = nitro_frame_copy_partial(fr, scratch);
}
nitro_frame_destroy(fr);

q->head++;

Expand Down

0 comments on commit 54d1b62

Please sign in to comment.