[PR #923] [MERGED] fix: free the allocated resources in quick sort #1452

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/923
Author: @KuhakuPixel
Created: 12/22/2021
Status: Merged
Merged: 12/22/2021
Merged by: @Panquesito7

Base: masterHead: master


📝 Commits (1)

  • 1a9d3ae Free the allocated resources

📊 Changes

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

View changed files

📝 sorting/quick_sort.c (+1 -0)

📄 Description

Free the allocated resources by malloc

Description of Change

It is a good practice and example to always free the allocated resources

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • 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:


🔄 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/923 **Author:** [@KuhakuPixel](https://github.com/KuhakuPixel) **Created:** 12/22/2021 **Status:** ✅ Merged **Merged:** 12/22/2021 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`1a9d3ae`](https://github.com/TheAlgorithms/C/commit/1a9d3ae4710de0fcded413237364348e6a512292) Free the allocated resources ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `sorting/quick_sort.c` (+1 -0) </details> ### 📄 Description Free the allocated resources by malloc #### Description of Change It is a good practice and example to always free the allocated resources <!-- Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [ ] Added tests and example, test must pass - [ ] 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 --> <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/923"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <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:20:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1452