Commit 72cf28f
committed
Fixed issues found by Coverity
The resource leak was real, if unlikely. I don't believe the NULL issues
in from_map and from_array actually exist. I think the NULL checker
thinks there may be an issue because of the NULL check in the for loop.
However, I moved a null check from the Reader_get function to the
from_entry_data_list function. If entry_data_list is NULL or the pointer
that it points to is NULL, it will now be caught there before the
from_map and from_array calls.1 parent 277a538 commit 72cf28f
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
| |||
300 | 295 | | |
301 | 296 | | |
302 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
0 commit comments