[PR #7098] [MERGED] bugfix: lib: fix memory leaks in syscall_in_list() #6313

Closed
opened 2026-05-05 10:54:36 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/7098
Author: @pierretom
Created: 3/11/2026
Status: Merged
Merged: 3/12/2026
Merged by: @kmk3

Base: masterHead: patch19


📝 Commits (1)

  • 1fe762a fix memory leaks in syscall_in_list()

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 src/lib/syscall.c (+6 -2)

📄 Description

asprintf() overwrites the value of ptr->xxx with the new pointer.
Result: the older allocation is never freed.

Should also help to pass a test for the PR #7066.


🔄 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/netblue30/firejail/pull/7098 **Author:** [@pierretom](https://github.com/pierretom) **Created:** 3/11/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `patch19` --- ### 📝 Commits (1) - [`1fe762a`](https://github.com/netblue30/firejail/commit/1fe762af6406b990a8bde17e6118433bde56a935) fix memory leaks in `syscall_in_list()` ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/syscall.c` (+6 -2) </details> ### 📄 Description `asprintf()` overwrites the value of `ptr->xxx` with the new pointer. Result: the older allocation is never freed. Should also help to pass a test for the PR #7066. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:54:36 -06: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: github-starred/firejail#6313
No description provided.