forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit75240f6
committed
jsonapi: fix memory leakage during OOM error recovery.
Coverity pointed out that inc_lex_level() would leak memory(not to mention corrupt the pstack data structure) if somebut not all of its three REALLOC's failed. To fix, storesuccessfully-updated pointers back into the pstack structimmediately.Oversight in0785d1b, so no need for back-patch.1 parenta7e5237 commit75240f6
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
547 | 553 |
| |
548 | 554 |
| |
549 |
| - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
550 | 560 |
| |
| 561 | + | |
551 | 562 |
| |
552 |
| - | |
| 563 | + | |
553 | 564 |
| |
554 | 565 |
| |
| 566 | + | |
555 | 567 |
| |
556 | 568 |
| |
557 |
| - | |
558 |
| - | |
559 |
| - | |
560 | 569 |
| |
561 | 570 |
| |
562 | 571 |
| |
|
0 commit comments
Comments
(0)