Commit 9c443c9
committed
Fix leak when cURL PREREQFUNCTION returns a string
The return value of the function registered with CURLOPT_PREREQFUNCTION
was not cleaned up. Destroy the return value. Increase the returned
string in the test so that the address sanitizer picks up the leak.1 parent c3236b9 commit 9c443c9
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments