Skip to content

Commit

Permalink
win: plug uv_fs_event_start memory leak (libuv#4647)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew McGoogan <amcgoogan@cribl.io>
Fixes: nodejs/node#52769
  • Loading branch information
amcgoogan and Andrew McGoogan authored Dec 12, 2024
1 parent 72d9abc commit 8820104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win/fs-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ int uv_fs_event_start(uv_fs_event_t* handle,
}

dir_to_watch = dir;
uv__free(short_path);
short_path = NULL;
uv__free(pathw);
pathw = NULL;
}
Expand Down

0 comments on commit 8820104

Please sign in to comment.