Skip to content

Commit

Permalink
Update Scheme.cpp
Browse files Browse the repository at this point in the history
add delete[] in scheme::multByConstVecAndEqual
  • Loading branch information
Seungwan Hong authored Aug 24, 2019
1 parent 1e81e49 commit cda993c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HEAAN/src/Scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ void Scheme::multByConstVecAndEqual(Ciphertext& cipher, complex<double>* cnstVec
ZZ* cnstPoly = new ZZ[N];
ring.encode(cnstPoly, cnstVec, slots, logp);
multByPolyAndEqual(cipher, cnstPoly, logp);
delete[] cnstPoly;
}

void Scheme::multByConstAndEqual(Ciphertext& cipher, double cnst, long logp) {
Expand Down

0 comments on commit cda993c

Please sign in to comment.