summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()