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

code conventions: malloc without free: all over. #1

Open
genbtc opened this issue Dec 29, 2017 · 0 comments
Open

code conventions: malloc without free: all over. #1

genbtc opened this issue Dec 29, 2017 · 0 comments

Comments

@genbtc
Copy link

genbtc commented Dec 29, 2017

When you no longer need a block that you got with malloc , use the function free to make the block available to be allocated again.

I understand this program reboots the computer but its still not right to leave everything allocated. It going out of scope isnt enough. The strings dont need to live for the lifetime of the program.

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