[PR #1303] fix: add and use delete_stack in dynamic_stack.c #1902

Open
opened 2026-01-29 15:25:58 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1303
Author: @vil02
Created: 9/13/2023
Status: 🔄 Open

Base: masterHead: memory_leak_in_dynamic_stack_patch


📝 Commits (1)

  • 2958609 fix: add and use delete_stack

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 data_structures/stack/dynamic_stack.c (+15 -0)

📄 Description

Description of Change

There is a memory leak in dynamic_stack.c. This PR adds a delete_stack function to fix it.

References

Checklist

  • Added description of change
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:
Removes memory leak in dynamic_stack.c.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1303 **Author:** [@vil02](https://github.com/vil02) **Created:** 9/13/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `memory_leak_in_dynamic_stack_patch` --- ### 📝 Commits (1) - [`2958609`](https://github.com/TheAlgorithms/C/commit/295860936e5fcb87816bbb97a16e518c7d594238) fix: add and use `delete_stack` ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `data_structures/stack/dynamic_stack.c` (+15 -0) </details> ### 📄 Description #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> There is a memory leak in [`dynamic_stack.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/stack/dynamic_stack.c). This PR adds a `delete_stack` function to fix it. #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> Removes memory leak in [`dynamic_stack.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/stack/dynamic_stack.c). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:25:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1902