summaryrefslogtreecommitdiff
path: root/src/cull_list.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 12:18:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 12:18:41 +0000
commit02497f5a89123c679260be44f4d2068b0a7f34e4 (patch)
tree43ab8129cc76370d8bbd775fd2d67cf21cf67770 /src/cull_list.cpp
parent57f498f8045c9ca010b09b860fe7c5a9ef9cf8c4 (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.cpp4
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()