forked from Telodendria/Telodendria
Don't leak so much memory.
This commit is contained in:
parent
42191ec03f
commit
441599b088
2 changed files with 3 additions and 3 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ encode(char *str)
|
|||
int
|
||||
Main(Array * args)
|
||||
{
|
||||
HashMap *json;
|
||||
HashMap *json = NULL;
|
||||
int flag = 0;
|
||||
int ch;
|
||||
char *input = NULL;
|
||||
|
@ -230,5 +230,6 @@ Main(Array * args)
|
|||
break;
|
||||
}
|
||||
|
||||
JsonFree(json);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue