TIME: NULL Check Before free(timestr);

This commit is contained in:
lwvmobile
2024-04-25 11:06:13 -04:00
parent ceb695af01
commit ab9a9ddab3
9 changed files with 69 additions and 58 deletions

View File

@@ -2135,8 +2135,8 @@ void edacs(dsd_opts * opts, dsd_state * state)
}
free (timestr); //free allocated memory to prevent memory leak
free (datestr);
if (timestr != NULL) free (timestr);
if (datestr != NULL) free (datestr);
fprintf (stderr, "\n");
}