From 383239b5957753f3f08fe0993942d0f0d9f88f7f Mon Sep 17 00:00:00 2001 From: arrai Date: Sun, 18 Jan 2009 14:52:58 +0100 Subject: [PATCH] [7103] replaced wrong delete by delete[] --- src/shared/Auth/AuthCrypt.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/Auth/AuthCrypt.cpp b/src/shared/Auth/AuthCrypt.cpp index 7686cdd81..5c91a22bc 100644 --- a/src/shared/Auth/AuthCrypt.cpp +++ b/src/shared/Auth/AuthCrypt.cpp @@ -64,7 +64,7 @@ void AuthCrypt::SetKey(BigNumber *bn) GenerateKey(key, bn); _key.resize(SHA_DIGEST_LENGTH); std::copy(key, key + SHA_DIGEST_LENGTH, _key.begin()); - delete key; + delete[] key; } AuthCrypt::~AuthCrypt() diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4ada821d6..0008ce903 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7102" + #define REVISION_NR "7103" #endif // __REVISION_NR_H__