Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 30: (Page-15, Figure 30.15): Memory leak in the free() code #101

Open
nitinpuranik opened this issue May 1, 2024 · 0 comments
Open

Comments

@nitinpuranik
Copy link

nitinpuranik commented May 1, 2024

First of all, this book is a treasure! Thank you so much for this wonderful gift to the world :)

I'm reporting a minor oversight in the void free() function in the below part of the book:
Chapter 30: Condition Variables
Page 15
Figure 30.15

The function body doesn't have a line (pseudocode, at least) to return back the allocated memory to heap, leading to a memory leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant