From 02497f5a89123c679260be44f4d2068b0a7f34e4 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Mar 2006 12:18:41 +0000 Subject: [PATCH] Safer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3627 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.5