[PR #1302] fix: remove memory leak in vector.c #1901

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/1302
Author: @vil02
Created: 9/12/2023
Status: 🔄 Open

Base: masterHead: memory_leak_in_vector_patch


📝 Commits (1)

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 data_structures/vector.c (+5 -3)

📄 Description

Description of Change

There is a memory leak in vector.c. This PR fixes it (and removes some trailing spaces). The Awesome CI Workflow passes on my end.

References

Checklist

  • Added description of change
  • 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 vector.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/1302 **Author:** [@vil02](https://github.com/vil02) **Created:** 9/12/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `memory_leak_in_vector_patch` --- ### 📝 Commits (1) - [`ecd6993`](https://github.com/TheAlgorithms/C/commit/ecd6993c484865ab2895e5291f22e6cc784a341e) fix: remove memory leak ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `data_structures/vector.c` (+5 -3) </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 [`vector.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/vector.c). This PR fixes it (and removes some _trailing spaces_). The _Awesome CI Workflow_ [passes on my end](https://github.com/vil02/C/actions/runs/6162760998). #### 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] 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 [`vector.c`](https://github.com/TheAlgorithms/C/blob/db3d6e2886ba043b9b30f6448ca0bcf92e58e039/data_structures/vector.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#1901