-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
wet_main->parse_options-> .... ->strdup ->malloc
"config_file" memory is not released
"log" memory is not released
When agl-compositor startup parameters contain socket and modules, the memory of socket_name and option_modules also needs to be released.
So I implemented a function to release backend, socket_name, log, config_file, option_modules, these five pointers.
To prevent the backend from being released again, I deleted the following two lines of code.
- free(backend);
- backend = NULL;
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
27227,3 | Fix potential memory leak in agl-compositor | master | src/agl-compositor | Status: MERGED | +2 | 0 |