Commit ed442fe
linux: avoid potential null pointer dereference
if the "result" pointer is null because of a memory allocation failure,
do not dereference it and do not free the old pointer.
Signed-off-by: Maurizio Lombardi <[email protected]>1 parent 3120b49 commit ed442fe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | | - | |
| 1147 | + | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
| |||
0 commit comments