Commit 07e0f1c
Avoid memory leak in the bbp function
1. When allocating memory for the product, if the allocation fails,
it returns NULL.
Co-authored-by: Chih-Wei Chien <idoleat@taiker.tw>
Signed-off-by: Wei-Hsin Yeh <weihsinyeh168@gmail.com>1 parent 597a90d commit 07e0f1c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
0 commit comments