[PR #215] [MERGED] Fix mem leak in openssl_auth.cpp:s3fs_sha256hexsum #1403

Closed
opened 2026-03-04 01:53:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/215
Author: @RobbKistler
Created: 7/30/2015
Status: Merged
Merged: 8/12/2015
Merged by: @ggtakec

Base: masterHead: memleak


📝 Commits (1)

  • fcb55c2 Fix mem leaks in openssl_auth.cpp, nss_auth.cpp

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 src/nss_auth.cpp (+1 -0)
📝 src/openssl_auth.cpp (+7 -4)

📄 Description

Destroy sha256ctx on all function returns. Otherwise memory leaks
every time a new file is created.


🔄 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/s3fs-fuse/s3fs-fuse/pull/215 **Author:** [@RobbKistler](https://github.com/RobbKistler) **Created:** 7/30/2015 **Status:** ✅ Merged **Merged:** 8/12/2015 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `memleak` --- ### 📝 Commits (1) - [`fcb55c2`](https://github.com/s3fs-fuse/s3fs-fuse/commit/fcb55c2109024ea5c44e35410be21e7371fa3cd0) Fix mem leaks in openssl_auth.cpp, nss_auth.cpp ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/nss_auth.cpp` (+1 -0) 📝 `src/openssl_auth.cpp` (+7 -4) </details> ### 📄 Description Destroy sha256ctx on all function returns. Otherwise memory leaks every time a new file is created. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:53:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1403
No description provided.