mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Fix defects detected by coverity scan
This commit is contained in:
parent
2253b29bf1
commit
0b2b0fceac
@ -392,6 +392,7 @@ void readtec(const char *file, nav_t *nav, int opt)
|
||||
if (!(fp = fopen(efiles[i], "r")))
|
||||
{
|
||||
trace(2, "ionex file open error %s\n", efiles[i]);
|
||||
fclose(fp);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
@ -400,6 +401,7 @@ void readtec(const char *file, nav_t *nav, int opt)
|
||||
if (readionexh(fp, lats, lons, hgts, &rb, &nexp, dcb, rms) <= 0.0)
|
||||
{
|
||||
trace(2, "ionex file format error %s\n", efiles[i]);
|
||||
fclose(fp);
|
||||
continue;
|
||||
}
|
||||
/* read ionex body */
|
||||
|
@ -369,7 +369,7 @@ int readsap(const char *file, gtime_t time, nav_t *nav)
|
||||
pcv = searchpcv(i + 1, "", time, &pcvs);
|
||||
nav->pcvs[i] = pcv ? *pcv : pcv0;
|
||||
}
|
||||
free(pcvs.pcv);
|
||||
free(pcv);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user