forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe0e0b4
committed
Fix memory leak in pgbench
Commit25ee705 introduced a memory leak in pgbench: some PGresultstructs were not being freed during error bailout, because we're nowdoing more PQgetResult() calls than previously. Since there's morecleanup code outside the discard_response() routine than in it, refactorthe cleanup code, removing the routine.This has little effect currently, since we abandon processing afterhitting errors, but if we ever get further pgbench features (such astesting for serializable transactions), it'll matter.Per Coverity.Reviewed-by: Michaël Paquier1 parenta2418f9 commitfe0e0b4
1 file changed
+18
-30
lines changedLines changed: 18 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 | 1216 |
| |
1217 |
| - | |
1218 |
| - | |
1219 |
| - | |
1220 |
| - | |
1221 |
| - | |
1222 |
| - | |
1223 |
| - | |
1224 |
| - | |
1225 |
| - | |
1226 |
| - | |
1227 |
| - | |
1228 |
| - | |
1229 |
| - | |
1230 |
| - | |
1231 | 1217 |
| |
1232 | 1218 |
| |
1233 | 1219 |
| |
| |||
2732 | 2718 |
| |
2733 | 2719 |
| |
2734 | 2720 |
| |
| 2721 | + | |
2735 | 2722 |
| |
2736 | 2723 |
| |
2737 | 2724 |
| |
2738 | 2725 |
| |
2739 | 2726 |
| |
2740 | 2727 |
| |
2741 | 2728 |
| |
2742 |
| - | |
| 2729 | + | |
2743 | 2730 |
| |
2744 | 2731 |
| |
2745 | 2732 |
| |
| |||
2751 | 2738 |
| |
2752 | 2739 |
| |
2753 | 2740 |
| |
2754 |
| - | |
2755 |
| - | |
| 2741 | + | |
2756 | 2742 |
| |
2757 | 2743 |
| |
2758 | 2744 |
| |
| |||
2764 | 2750 |
| |
2765 | 2751 |
| |
2766 | 2752 |
| |
2767 |
| - | |
2768 |
| - | |
2769 |
| - | |
2770 |
| - | |
| 2753 | + | |
2771 | 2754 |
| |
2772 | 2755 |
| |
2773 | 2756 |
| |
| |||
2788 | 2771 |
| |
2789 | 2772 |
| |
2790 | 2773 |
| |
2791 |
| - | |
2792 |
| - | |
2793 |
| - | |
2794 |
| - | |
| 2774 | + | |
2795 | 2775 |
| |
2796 | 2776 |
| |
2797 | 2777 |
| |
| |||
2807 | 2787 |
| |
2808 | 2788 |
| |
2809 | 2789 |
| |
2810 |
| - | |
2811 |
| - | |
2812 |
| - | |
2813 |
| - | |
| 2790 | + | |
2814 | 2791 |
| |
2815 | 2792 |
| |
2816 | 2793 |
| |
| |||
2826 | 2803 |
| |
2827 | 2804 |
| |
2828 | 2805 |
| |
2829 |
| - | |
2830 | 2806 |
| |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
2831 | 2819 |
| |
2832 | 2820 |
| |
2833 | 2821 |
| |
|
0 commit comments
Comments
(0)