Commit b2ac7ce
Fix memory leak in MessageClass.encode
If the line above raises an exception, the upb_arena is lost and memory
is leaked.1 parent e58469b commit b2ac7ce
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | 1015 | | |
1017 | 1016 | | |
1018 | 1017 | | |
1019 | 1018 | | |
1020 | 1019 | | |
1021 | 1020 | | |
1022 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
1023 | 1024 | | |
1024 | 1025 | | |
1025 | 1026 | | |
| |||
0 commit comments