diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2025-10-22 12:57:41 +0530 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-10-23 11:58:05 +0530 |
| commit | 173e02d674946ff3ef8da7f44a9d5b820b9af21c (patch) | |
| tree | 9eeacfe682240c7e80f2a2ce8faf8b546a83b4ef /tools/docs/parse-headers.py | |
| parent | e6fdbe8feace22ba54ebcf20d6e200fc97c8e065 (diff) | |
OPP: Initialize scope-based pointers inline
Uninitialized pointers with `__free` attribute can cause undefined
behaviour as the memory allocated to the pointer is freed automatically
when the pointer goes out of scope.
The OPP core doesn't have any bugs related to this as of now, but it is
better to initialize pointers marked with `__free` attribute at
declaration to simplify the code and ensure proper scope-based cleanup.
Reported-by: Joe Perches <joe@perches.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions
