Skip to content

Commit 8cf9e08

Browse files
committed
Fixed minor memory leak
1 parent fdae674 commit 8cf9e08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/symengine/ruby_basic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ VALUE cbasic_div(VALUE self, VALUE operand2)
9191
basic_free_stack(cbasic_operand2);
9292
return result;
9393
} else {
94+
basic_free_stack(cbasic_operand2);
9495
rb_raise(rb_eRuntimeError, "Runtime Error");
9596
}
9697
}

0 commit comments

Comments
 (0)