diff options
| author | 2006-03-10 12:18:41 +0000 | |
|---|---|---|
| committer | 2006-03-10 12:18:41 +0000 | |
| commit | 02497f5a89123c679260be44f4d2068b0a7f34e4 (patch) | |
| tree | 43ab8129cc76370d8bbd775fd2d67cf21cf67770 /src/cull_list.cpp | |
| parent | Faster CullItem/CullList using strdup rather than copying a std::string (diff) | |
Safer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3627 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cull_list.cpp')
| -rw-r--r-- | src/cull_list.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 0951a3224..a911cbc78 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -95,7 +95,9 @@ CullItem::CullItem(userrec* u, const char* r) CullItem::~CullItem() { - free(reason); + if (reason) + free(reason); + reason = NULL; } userrec* CullItem::GetUser() |
