Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Dejan Jovanovic committed Apr 1, 2020
1 parent 575451d commit 3c7812e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/number/value.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ void lp_value_approx(const lp_value_t* v, lp_rational_interval_t* out) {
lp_rational_t point;
rational_construct_from_integer(&point, &v->value.z);
lp_rational_interval_construct_point(&approx, &point);
rational_destruct(&point);
break;
}
case LP_VALUE_RATIONAL:
Expand Down

0 comments on commit 3c7812e

Please sign in to comment.