diff --git a/src/AES.cpp b/src/AES.cpp index 346a02d..3de9388 100644 --- a/src/AES.cpp +++ b/src/AES.cpp @@ -339,7 +339,7 @@ void AES::MixColumns(unsigned char** state) state[j][i] = temp[j]; //when the column is mixed, place it back into the state } } - delete temp; + delete[] temp; } void AES::AddRoundKey(unsigned char **state, unsigned char *key)