diff options
Diffstat (limited to 'src/users.c')
| -rw-r--r-- | src/users.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c index 47a0ba1b9..93b7eef34 100644 --- a/src/users.c +++ b/src/users.c @@ -217,8 +217,10 @@ User::~User() if (this->uid) delete [] this->uid; - Anope_Free(this->realname); - delete [] this->hostip; + if (this->realname) + delete [] this->realname; + if (this->hostip) + delete [] this->hostip; if (debug >= 2) alog("debug: User::~User(): remove from channels"); |
