Skip to content

Facade proof: a destroyer is reported as retaining what it frees (curl_slist_free_all: "retains param 0 (stored in a global)") #3125

Closed

Description

@ehartford

Part of #3115; observation 3 of #3111.

curl_slist_free_all is refused as "retains param 0 (stored in a global)", and curl_slist_append (the list's producer, NULL creating a list) as "retains param 0 ... stored in a global". A function that frees its argument cannot retain it; the global store is the allocator's or a debug ledger's, and the proof should rank "frees param 0" above any store it finds on the way.

Done when: a function the proof shows frees its parameter is classified as that parameter's destroyer regardless of incidental stores; curl_slist presents as a resource.

Activity

  1. ehartford commented on Nov 11, 2026

    @ehartford
    ContributorAuthor

    Fixed on main (verified 2026-11-11 with c.libcurl 8.23.0 from with get): the report now reads curl_slist_free_all: destroyer, param 0 (proof: frees it); a parameter the proof shows freed ranks above any store found on the way (CiFacadeDraft.fd_lend_verdict takes param_destroys before param_stores). curl_slist_append is still raw for a different reason, returns param 0, but param 0 or the return is not a modeled resource: the NULL-creates/returns-the-head producer shape, which is #3121; curl_slist presents as a resource when that lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions