- Notifications
You must be signed in to change notification settings - Fork28
Commit4714984
Neil Conway
Fix a theoretical memory leak in pg_password_sendauth(). If the first
malloc() succeeded but the second failed, the buffer allocated by thefirst malloc() would be leaked. Fix this by allocating both buffersvia a single malloc(), as suggested by Tom.Per Coverity static analysis performed by EnterpriseDB.1 parent401de9c commit4714984
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| 417 | + | |
| 418 | + | |
416 | 419 | | |
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
420 | | - | |
421 | 423 | | |
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
427 | | - | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
0 commit comments
Comments
(0)