- Notifications
You must be signed in to change notification settings - Fork28
Commitef42c11
committed
pg_dump: Don't leak memory in buildDefaultACLCommands()
buildDefaultACLCommands() didn't destroy the string buffer created incertain cases, leading to a memory leak. Fix by destroying the bufferbefore returning from the function.Spotted by Coverity.Author: Michael PaquierBack-patch to 9.6 where buildDefaultACLCommands() was added.1 parent92b1522 commitef42c11
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
| 397 | + | |
| 398 | + | |
397 | 399 |
| |
| 400 | + | |
398 | 401 |
| |
399 | 402 |
| |
400 | 403 |
| |
401 | 404 |
| |
402 | 405 |
| |
| 406 | + | |
| 407 | + | |
403 | 408 |
| |
| 409 | + | |
404 | 410 |
| |
405 | 411 |
| |
406 | 412 |
| |
|
0 commit comments
Comments
(0)