GerHobbelt / pthread-win32

clone of pthread-win32 (a.k.a. pthreads4w) + local tweaks (including MSVC2008 - MSVC2022 project files)
Other
350 stars 166 forks source link

Fix use after free() and double free() #4

Closed Dmitry-Me closed 9 years ago

Dmitry-Me commented 9 years ago

free() is called afterwards anyway. If control passes to this branch the original code would first have "use after free" and then the second free() would run.

GerHobbelt commented 9 years ago

Whoops, good catch!

Dmitry-Me commented 9 years ago

@GerHobbelt How is this repo related to http://sourceforge.net/projects/pthreads4w/ ? Do you send changes there? Do you pull changes from there?