forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit09f8421
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 parentaa5d3c0 commit09f8421
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| 393 | + | |
| 394 | + | |
393 | 395 |
| |
| 396 | + | |
394 | 397 |
| |
395 | 398 |
| |
396 | 399 |
| |
397 | 400 |
| |
398 | 401 |
| |
| 402 | + | |
| 403 | + | |
399 | 404 |
| |
| 405 | + | |
400 | 406 |
| |
401 | 407 |
| |
402 | 408 |
| |
|
0 commit comments
Comments
(0)