forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit190c798
committed
Simplify memory management for regex DFAs a little.
Coverity complained that functions in regexec.c might leak DFAstorage. It's wrong, but this logic is confusing enough that it'snot so surprising Coverity couldn't make sense of it. Rewritein hopes of making it more legible to humans as well as machines.1 parent6ee479a commit190c798
2 files changed
+13
-11
lines changedLines changed: 10 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
502 |
| - | |
| 502 | + | |
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
| |||
514 | 514 |
| |
515 | 515 |
| |
516 | 516 |
| |
| 517 | + | |
517 | 518 |
| |
518 | 519 |
| |
519 | 520 |
| |
520 | 521 |
| |
521 | 522 |
| |
522 | 523 |
| |
523 | 524 |
| |
524 |
| - | |
525 |
| - | |
| 525 | + | |
| 526 | + | |
526 | 527 |
| |
527 | 528 |
| |
528 | 529 |
| |
| |||
540 | 541 |
| |
541 | 542 |
| |
542 | 543 |
| |
543 |
| - | |
544 |
| - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
545 | 547 |
| |
546 | 548 |
| |
547 | 549 |
| |
| |||
573 | 575 |
| |
574 | 576 |
| |
575 | 577 |
| |
576 |
| - | |
| 578 | + | |
577 | 579 |
| |
578 | 580 |
| |
579 | 581 |
| |
| |||
585 | 587 |
| |
586 | 588 |
| |
587 | 589 |
| |
588 |
| - | |
589 |
| - | |
| 590 | + | |
| 591 | + | |
590 | 592 |
| |
591 | 593 |
| |
592 | 594 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
| 80 | + | |
| 81 | + | |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
|
0 commit comments
Comments
(0)