Global: fix some memleaks

This commit is contained in:
李通洲
2023-09-13 17:42:22 +08:00
parent b3bdf494ab
commit 28d40d9037
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ void ffPrintDateTimeFormat(struct tm* tm, const FFModuleArgs* moduleArgs)
void ffPrintDateTime(FFDateTimeOptions* options)
{
uint64_t msNow = ffTimeGetNow();
time_t sNow = msNow / 1000;
time_t sNow = (time_t) (msNow / 1000);
struct tm* tm = localtime(&sNow);
if(options->moduleArgs.outputFormat.length > 0)