mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 13:15:40 -05:00
TIME: NULL Check Before free(timestr);
This commit is contained in:
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user