Commit 3c5db8f
src: avoid leaking snapshot fp on error
Call fclose() on the snapshot file regardless of whether reading the
snapshot data succeeded.
PR-URL: #46497
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>1 parent 1a808a4 commit 3c5db8f
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1172 | 1174 | | |
1173 | 1175 | | |
1174 | 1176 | | |
1175 | 1177 | | |
1176 | 1178 | | |
1177 | 1179 | | |
1178 | | - | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
| |||
0 commit comments