forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6b75942
committed
I've found a memory leak in libecpg of PostgreSQL 7.0.3.
The leak is caused by the memory allocation insrc/interfaces/ecpg/lib/execute.c in line 669 which is never freed.Adding a "free(array_query);" after PQexec in line 671 seems to fix theleak.Thorsten Knabe1 parent3bdadd0 commit6b75942
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
| 344 | + | |
344 | 345 |
| |
345 | 346 |
| |
346 | 347 |
| |
| |||
1005 | 1006 |
| |
1006 | 1007 |
| |
1007 | 1008 |
| |
1008 |
| - | |
| 1009 | + | |
1009 | 1010 |
| |
1010 | 1011 |
| |
1011 | 1012 |
| |
|
0 commit comments
Comments
(0)