[PR #1304] fix: remove memory leaks kruskal.c #1903

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

Original Pull Request: https://github.com/TheAlgorithms/C/pull/1304

State: open
Merged: No


Description of Change

There are two memory leaks in kruskal.c. This PR removes them.

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 kruskal.c.

**Original Pull Request:** https://github.com/TheAlgorithms/C/pull/1304 **State:** open **Merged:** No --- #### 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 are _two_ memory leaks in [`kruskal.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/graphs/kruskal.c). This PR removes them. #### 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 [`kruskal.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/graphs/kruskal.c).
claunia added the pull-request label 2026-01-29 15:25:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1903