Skip to content

Commit 1acb773

Browse files
committed
Remove unnecessary test before free
Signed-off-by: Paul Guyot <[email protected]>
1 parent a3ee88b commit 1acb773

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libAtomVM/context.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ Context *context_new(GlobalContext *glb)
119119
void context_destroy(Context *ctx)
120120
{
121121
#ifndef AVM_NO_FP
122-
if (ctx->fr) {
123-
free(ctx->fr);
124-
}
122+
free(ctx->fr);
125123
#endif
126124
list_remove(&ctx->processes_table_head);
127125

0 commit comments

Comments
 (0)