mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
Algorithms C stack, Why not free the orgin memory #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.@danghai commented on GitHub (Jul 10, 2019):
Could you give me the link of the file?
@megahertz66 commented on GitHub (Jul 10, 2019):
https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/stack.c
Only
mallocin this file and nofree@danghai commented on GitHub (Jul 10, 2019):
Hi @megahertz66 . Could you open a PR to resolve it? Thank you
@megahertz66 commented on GitHub (Jul 11, 2019):
Hello @danghai. The PR is ok. Please review the code.
@megahertz66 commented on GitHub (Jul 15, 2019):
@danghai . The PR is ok.
@ashwek commented on GitHub (Nov 3, 2019):
issue resolved in PR #243