Skip to content

Commit

Permalink
fix leak in rz_base_type_clone
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow authored and Rot127 committed Jan 8, 2025
1 parent c97d4ee commit f9b3b48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librz/type/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ RZ_API RZ_OWN RzBaseType *rz_base_type_clone(RZ_NULLABLE RZ_BORROW RzBaseType *b
return NULL;
}
if (!rz_base_type_clone_into(type, b)) {
rz_type_base_type_free(type);
return NULL;
}
return type;
Expand Down

0 comments on commit f9b3b48

Please sign in to comment.