forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit91cbb4b
committed
Fix assorted resource leaks in new pg_createsubscriber code.
Various error paths did not release resources before returning.While it's likely that the program would just exit shortly later,none of the functions in question have summary exit(1) calls,so they should not be assuming that.Ranier Vilela and Tom Lane, per reports from CoverityDiscussion:https://postgr.es/m/CAEudQAr2_SZFxB4kXJiL4+2UaNZxUk5UBJtj0oXyJYMGZu-03g@mail.gmail.com1 parent6f47f68 commit91cbb4b
1 file changed
+13
-4
lines changedLines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
255 |
| - | |
| 254 | + | |
| 255 | + | |
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
| 265 | + | |
265 | 266 |
| |
266 | 267 |
| |
267 | 268 |
| |
| 269 | + | |
268 | 270 |
| |
269 | 271 |
| |
270 | 272 |
| |
| |||
497 | 499 |
| |
498 | 500 |
| |
499 | 501 |
| |
| 502 | + | |
| 503 | + | |
500 | 504 |
| |
501 | 505 |
| |
502 |
| - | |
503 | 506 |
| |
504 | 507 |
| |
505 | 508 |
| |
| |||
509 | 512 |
| |
510 | 513 |
| |
511 | 514 |
| |
| 515 | + | |
| 516 | + | |
| 517 | + | |
512 | 518 |
| |
513 | 519 |
| |
514 |
| - | |
515 | 520 |
| |
516 | 521 |
| |
517 | 522 |
| |
| |||
941 | 946 |
| |
942 | 947 |
| |
943 | 948 |
| |
| 949 | + | |
| 950 | + | |
944 | 951 |
| |
945 | 952 |
| |
946 | 953 |
| |
| |||
1209 | 1216 |
| |
1210 | 1217 |
| |
1211 | 1218 |
| |
| 1219 | + | |
| 1220 | + | |
1212 | 1221 |
| |
1213 | 1222 |
| |
1214 | 1223 |
| |
|
0 commit comments
Comments
(0)