diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/pointer.h | 6 | ||||
-rw-r--r-- | src/util/srp.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/util/pointer.h b/src/util/pointer.h index 6614ca2c2..f68269882 100644 --- a/src/util/pointer.h +++ b/src/util/pointer.h @@ -97,8 +97,7 @@ public: private: void drop() { - if(data) - delete[] data; + delete[] data; } T *data; unsigned int m_size; @@ -214,8 +213,7 @@ private: (*refcount)--; if(*refcount == 0) { - if(data) - delete[] data; + delete[] data; delete refcount; } } diff --git a/src/util/srp.cpp b/src/util/srp.cpp index 430ba1137..e0ddb9020 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -861,7 +861,7 @@ err_exit: mpz_clear(usr->a); mpz_clear(usr->A); mpz_clear(usr->S); - if (usr->ng) delete_ng(usr->ng); + delete_ng(usr->ng); srp_free(usr->username); srp_free(usr->username_verifier); if (usr->password) { |