- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit3151c26
committed
ecpg: Fix memory leaks in ecpg_auto_prepare()
This routines includes three code paths that can fail, with theallocated prepared statement name going out of scope.Per report from Coverity. Oversight in commita6eabec, that hasplayed with the order of some ecpg_strdup() calls in this code path.1 parent793928c commit3151c26
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
606 | 608 | | |
| 609 | + | |
607 | 610 | | |
608 | 611 | | |
609 | 612 | | |
| |||
619 | 622 | | |
620 | 623 | | |
621 | 624 | | |
| 625 | + | |
| 626 | + | |
622 | 627 | | |
| 628 | + | |
623 | 629 | | |
624 | 630 | | |
625 | 631 | | |
| 632 | + | |
| 633 | + | |
626 | 634 | | |
| 635 | + | |
627 | 636 | | |
628 | 637 | | |
629 | 638 | | |
| |||
0 commit comments
Comments
(0)