mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:15:07 -05:00
Fix possible leaks of temporary file names
This commit is contained in:
@@ -313,6 +313,7 @@ update_drift_file(double freq_ppm, double skew)
|
||||
/* Write the frequency and skew parameters in ppm */
|
||||
if ((fprintf(out, "%20.6f %20.6f\n", freq_ppm, 1.0e6 * skew) < 0) |
|
||||
fclose(out)) {
|
||||
Free(temp_drift_file);
|
||||
LOG(LOGS_WARN, LOGF_Reference, "Could not write to temporary driftfile %s.tmp",
|
||||
drift_file);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user