Skip to content

Commit 3c7812e

Browse files
author
Dejan Jovanovic
committedApr 1, 2020
fix memory leak
1 parent 575451d commit 3c7812e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/number/value.c

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ void lp_value_approx(const lp_value_t* v, lp_rational_interval_t* out) {
163163
lp_rational_t point;
164164
rational_construct_from_integer(&point, &v->value.z);
165165
lp_rational_interval_construct_point(&approx, &point);
166+
rational_destruct(&point);
166167
break;
167168
}
168169
case LP_VALUE_RATIONAL:

0 commit comments

Comments
 (0)
Please sign in to comment.