forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a5529f
committed
From: Igor <igor@sba.miami.edu>
Subject: [PATCHES] memory leak patches in libpq and psqlA couple of small memory leak patches (detected with Purify) primarilyin libpq.* Fixed (NULL) border problem in psql (run psql, do \m, then select something from a table...row separators will be nulls)* Fixed memory leak with the abovementioned border not being freed properly.* Fixed memory leak in freePGconn() not freeing conn->port* Fixed up PQclear() to free parts of PGresult only if these parts are not null.* Fixed a decent memory leak that occured after executing every command in psql. PGresult *results was not freed most of the time.There is still a leak being detected (2 bytes) in readline functions, butI think this is old readline library. I will install new one and test it.1 parentd955727 commit9a5529f
3 files changed
+23
-18
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
612 | 612 |
| |
613 | 613 |
| |
614 | 614 |
| |
| 615 | + | |
615 | 616 |
| |
616 | 617 |
| |
617 | 618 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
588 | 588 |
| |
589 | 589 |
| |
590 | 590 |
| |
| 591 | + | |
591 | 592 |
| |
592 | 593 |
| |
593 | 594 |
| |
|
Lines changed: 19 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
| |||
78 | 81 |
| |
79 | 82 |
| |
80 | 83 |
| |
81 |
| - | |
| 84 | + | |
82 | 85 |
| |
83 |
| - | |
| 86 | + | |
84 | 87 |
| |
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
88 | 91 |
| |
89 | 92 |
| |
90 |
| - | |
| 93 | + | |
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
| |||
590 | 593 |
| |
591 | 594 |
| |
592 | 595 |
| |
593 |
| - | |
594 |
| - | |
595 | 596 |
| |
596 | 597 |
| |
597 | 598 |
| |
| |||
663 | 664 |
| |
664 | 665 |
| |
665 | 666 |
| |
666 |
| - | |
667 | 667 |
| |
668 | 668 |
| |
669 | 669 |
| |
| |||
734 | 734 |
| |
735 | 735 |
| |
736 | 736 |
| |
737 |
| - | |
738 | 737 |
| |
739 | 738 |
| |
740 | 739 |
| |
| |||
973 | 972 |
| |
974 | 973 |
| |
975 | 974 |
| |
976 |
| - | |
| 975 | + | |
977 | 976 |
| |
978 | 977 |
| |
979 |
| - | |
| 978 | + | |
980 | 979 |
| |
981 | 980 |
| |
| 981 | + | |
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
985 | 985 |
| |
986 | 986 |
| |
987 | 987 |
| |
988 | 988 |
| |
989 |
| - | |
| 989 | + | |
990 | 990 |
| |
991 | 991 |
| |
992 | 992 |
| |
993 | 993 |
| |
994 |
| - | |
| 994 | + | |
| 995 | + | |
995 | 996 |
| |
996 | 997 |
| |
997 | 998 |
| |
| 999 | + | |
998 | 1000 |
| |
999 | 1001 |
| |
1000 | 1002 |
| |
| |||
1038 | 1040 |
| |
1039 | 1041 |
| |
1040 | 1042 |
| |
| 1043 | + | |
1041 | 1044 |
| |
1042 | 1045 |
| |
1043 | 1046 |
| |
| |||
1262 | 1265 |
| |
1263 | 1266 |
| |
1264 | 1267 |
| |
1265 |
| - | |
1266 |
| - | |
| 1268 | + | |
| 1269 | + | |
1267 | 1270 |
| |
1268 | 1271 |
| |
1269 | 1272 |
| |
1270 | 1273 |
| |
| 1274 | + | |
| 1275 | + | |
1271 | 1276 |
| |
1272 | 1277 |
| |
1273 | 1278 |
| |
| |||
1279 | 1284 |
| |
1280 | 1285 |
| |
1281 | 1286 |
| |
1282 |
| - | |
1283 |
| - | |
1284 | 1287 |
| |
1285 | 1288 |
| |
1286 | 1289 |
| |
|
0 commit comments
Comments
(0)