Skip to content

Commit

Permalink
Update src/fs_io.h
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Rousskov <[email protected]>
  • Loading branch information
yadij and rousskov authored Sep 27, 2024
1 parent 0cd7a7c commit c5fbd57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fs_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class dwrite_q
dwrite_q *next = nullptr;

private:
FREE *free_func = {}; // function to free 'buf' (if any)

private:
/// when set, gets called upon object destruction to free buf
FREE *free_func = nullptr;
};

int file_open(const char *path, int mode);
Expand Down

0 comments on commit c5fbd57

Please sign in to comment.