diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 20:31:29 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-01 20:31:29 +0000 |
commit | 77f2c9bb246e5d48240f3f869ae625cd9f77568f (patch) | |
tree | 55edaf24d59844e34c99c3d8fd8e764aad96d0e0 /src/cmd_stats.cpp | |
parent | c34dd1e50faa413e35d75191afa2d93aab1e7c76 (diff) |
Make valgrind happy and not leak mem.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7201 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r-- | src/cmd_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp index 5a22a2b4c..c44042e51 100644 --- a/src/cmd_stats.cpp +++ b/src/cmd_stats.cpp @@ -190,7 +190,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user, whowas_command->HandleInternal(WHOWAS_STATS, params); if (whowas_stats.GetExt("stats")) { - char* stats = NULL; + char* stats; whowas_stats.GetExt("stats", stats); results.push_back(sn+" 249 "+user->nick+" :"+ConvToStr(stats)); } |