Skip to content

Commit

Permalink
GT: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Nov 28, 2024
1 parent 4ba5512 commit 4cdd2aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions constantine/math/pairings/gt_multiexp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func multiExp_reference_vartime*[bits: static int, Gt](
var r_torus {.noInit.}: T2Prj[F]
multiExp_reference_dispatch_vartime(r_torus, elemsTorus, expos, N)
r.fromTorus2_vartime(r_torus)
elemsTorus.freeHeapAligned()
else:
multiExp_reference_dispatch_vartime(r, elems, expos, N)

Expand Down

0 comments on commit 4cdd2aa

Please sign in to comment.