2021-10-01 03:28:36 -07:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2015-09-09 06:20:10 -07:00
|
|
|
@@
|
|
|
|
expression p;
|
|
|
|
@@
|
|
|
|
- if (p) {
|
|
|
|
- fclose(p);
|
|
|
|
- p = NULL;
|
|
|
|
- }
|
|
|
|
+ p = safe_fclose(p);
|
|
|
|
@@
|
|
|
|
expression p;
|
|
|
|
@@
|
|
|
|
- if (p)
|
|
|
|
- fclose(p);
|
|
|
|
- p = NULL;
|
|
|
|
+ p = safe_fclose(p);
|
|
|
|
@@
|
|
|
|
expression p;
|
|
|
|
@@
|
|
|
|
- fclose(p);
|
|
|
|
- p = NULL;
|
|
|
|
+ p = safe_fclose(p);
|
|
|
|
@@
|
|
|
|
expression p;
|
|
|
|
@@
|
|
|
|
- if (p)
|
|
|
|
- fclose(p);
|
|
|
|
+ safe_fclose(p);
|