Skip to content

Commit

Permalink
python: fix double decref in init_type_kind_set()
Browse files Browse the repository at this point in the history
We're explicitly calling Py_DECREF() on a variable that we defined with
_cleanup_pydecref_. Luckily, the variable should be set to Py_None, so
it's unlikely to be a problem in practice.

Fixes: 9b73b44 ("python: add TypeKindSet")
Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov committed Nov 13, 2024
1 parent 025a04d commit 57e4e33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libdrgn/python/type_kind_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ int init_type_kind_set(void)
&TypeKindSet_type);
if (!res)
return -1;
Py_DECREF(res);
return 0;
}

Expand Down

0 comments on commit 57e4e33

Please sign in to comment.