Commit 6020ec8
committed
parser.rl: allocate structs with wrapper
* ext/json/ext/parser/parser.rl (cJSON_parser_s_allocate): allocate
structs with making new wrapper objects and get rid of potential
memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e1 parent 638a1f7 commit 6020ec8
3 files changed
+10
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2091 | 2091 | | |
2092 | 2092 | | |
2093 | 2093 | | |
2094 | | - | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | 2094 | | |
2103 | 2095 | | |
2104 | 2096 | | |
| |||
2135 | 2127 | | |
2136 | 2128 | | |
2137 | 2129 | | |
2138 | | - | |
2139 | | - | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
2140 | 2134 | | |
2141 | 2135 | | |
2142 | 2136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | 817 | | |
826 | 818 | | |
827 | 819 | | |
| |||
858 | 850 | | |
859 | 851 | | |
860 | 852 | | |
861 | | - | |
862 | | - | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
863 | 857 | | |
864 | 858 | | |
865 | 859 | | |
| |||
0 commit comments