Skip to content

Commit

Permalink
remove redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Nov 28, 2024
1 parent f73a754 commit 13dfb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ stumpless_copy_entry( const struct stumpless_entry *entry ) {

copy->elements = alloc_array( entry->element_count, sizeof( element_copy ) );
if( !copy->elements ) {
stumpless_destroy_entry_only( copy );
unchecked_destroy_entry( copy );
goto cleanup_and_fail;
}

Expand Down

0 comments on commit 13dfb08

Please sign in to comment.