[PR #1305] fix: remove memory leak in max_heap.c #1904

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

📋 Pull Request Information

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

Base: masterHead: memory_leak_in_max_heap_patch


📝 Commits (1)

  • efc2fef fix: remove memory leak in max_heap.c

📊 Changes

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

View changed files

📝 data_structures/heap/max_heap.c (+18 -0)

📄 Description

Description of Change

max_heap.c has a memory leak. This PR removes 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:

Fixes memory leaks in max_heap.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/1305 **Author:** [@vil02](https://github.com/vil02) **Created:** 9/14/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `memory_leak_in_max_heap_patch` --- ### 📝 Commits (1) - [`efc2fef`](https://github.com/TheAlgorithms/C/commit/efc2fef19aff03fa5e5f0dec9ff0cc9533b4320f) fix: remove memory leak in `max_heap.c` ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `data_structures/heap/max_heap.c` (+18 -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 --> [`max_heap.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/heap/max_heap.c) has a memory leak. This PR removes 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 --> Fixes memory leaks in [`max_heap.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/heap/max_heap.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:26:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1904