Don't leak so much memory.
This commit is contained in:
parent
f44db5a712
commit
4b85d10983
1 changed files with 1 additions and 2 deletions
|
@ -24,7 +24,6 @@
|
|||
#include <Log.h>
|
||||
|
||||
#include <Memory.h>
|
||||
#include <Str.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
@ -209,7 +208,7 @@ LogConfigTimeStampFormatSet(LogConfig * config, char *tsFmt)
|
|||
{
|
||||
if (config)
|
||||
{
|
||||
config->tsFmt = StrDuplicate(tsFmt);
|
||||
config->tsFmt = tsFmt;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue