Skip to content

Commit ff6fb15

Browse files
authored
Merge pull request #283 from wegank/leak-fix-1
Fix a potential memory leak
2 parents f7504b5 + ed23012 commit ff6fb15

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/msolve/msolve.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,7 @@ int is_splittable(param_t **nmod_params, const int fc){
18951895
nmod_poly_gcd(gcd, nmod_params[0]->elim, nmod_params[0]->coords[i]);
18961896
long deg = nmod_poly_degree(gcd);
18971897
if(deg > 0){
1898+
nmod_poly_clear(gcd);
18981899
return 1;
18991900
}
19001901
}

0 commit comments

Comments
 (0)