Skip to content

Commit

Permalink
[fix] clean up other uv_fs_t handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Nov 23, 2013
1 parent 1998e08 commit a6e328a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/start.c
Expand Up @@ -20,8 +20,13 @@ static uv_fs_t log_file;
static uv_file log_file_fd;

void start__on_log_file_write(uv_fs_t* req) {
//
// Remark: shouldnt this be cleaned up as well?
//
uv_fs_req_cleanup(req);
uv_fs_close(loop, &log_file, log_file_fd, NULL);
uv_fs_req_cleanup(&log_file);

log_file_fd = -1;
}

Expand Down

0 comments on commit a6e328a

Please sign in to comment.