Algorithms C stack, Why not free the orgin memory #30

Closed
opened 2026-01-29 15:01:09 +00:00 by claunia · 6 comments
Owner

Originally created by @megahertz66 on GitHub (Jul 9, 2019).

In fuction void grow() On line 53. The copy element has been completed. Why not free the orgin memory.

Originally created by @megahertz66 on GitHub (Jul 9, 2019). In fuction `void grow()` On line 53. The copy element has been completed. Why not free the orgin memory.
Author
Owner

@danghai commented on GitHub (Jul 10, 2019):

Could you give me the link of the file?

@danghai commented on GitHub (Jul 10, 2019): Could you give me the link of the file?
Author
Owner

@megahertz66 commented on GitHub (Jul 10, 2019):

https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/stack.c
Only malloc in this file and no free

@megahertz66 commented on GitHub (Jul 10, 2019): https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/stack.c Only `malloc` in this file and no `free`
Author
Owner

@danghai commented on GitHub (Jul 10, 2019):

Hi @megahertz66 . Could you open a PR to resolve it? Thank you

@danghai commented on GitHub (Jul 10, 2019): Hi @megahertz66 . Could you open a PR to resolve it? Thank you
Author
Owner

@megahertz66 commented on GitHub (Jul 11, 2019):

Hello @danghai. The PR is ok. Please review the code.

@megahertz66 commented on GitHub (Jul 11, 2019): Hello @danghai. The PR is ok. Please review the code.
Author
Owner

@megahertz66 commented on GitHub (Jul 15, 2019):

@danghai . The PR is ok.

@megahertz66 commented on GitHub (Jul 15, 2019): @danghai . The PR is ok.
Author
Owner

@ashwek commented on GitHub (Nov 3, 2019):

issue resolved in PR #243

@ashwek commented on GitHub (Nov 3, 2019): issue resolved in PR #243
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#30