Skip to content

flamingo: API for external to inc/decrement refcount of value#18

Merged
obiwac merged 2 commits into
mainfrom
feature/val-inc-decref-api
Dec 18, 2025
Merged

flamingo: API for external to inc/decrement refcount of value#18
obiwac merged 2 commits into
mainfrom
feature/val-inc-decref-api

Conversation

@obiwac

@obiwac obiwac commented Dec 18, 2025

Copy link
Copy Markdown
Member

As of #15, a lot of stuff that was never freed previously and which external users of Flamingo (e.g. Bob the Builder) assumed to always exist is now freed, causing use-after-free issues. The solution is for these externals to increment the reference of values they hold on to and then to decrement them when they let go. This PR provides an API for that.

Comment thread flamingo/flamingo.c Outdated
Comment thread flamingo/flamingo.h
Comment thread flamingo/flamingo.h Outdated

@drakeerv drakeerv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@obiwac obiwac merged commit 02de88e into main Dec 18, 2025
4 checks passed
@obiwac obiwac deleted the feature/val-inc-decref-api branch December 18, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants