mirror of https://github.com/nirenjan/libx52.git
The pinelog_init function frees the module_level and module_name pointers at the start of the function, but doesn't reset them back to NULL. If a subsequent malloc fails, then it would attempt to free the pointer again, resulting in a double-free situation. However, this is only hit if the pinelog_init function is called more than once. While this is not likely (given that I'm the only known user of pinelog at this time), it's still good coding practice. |
||
|---|---|---|
| .. | ||
| inih | ||
| pinelog | ||
| Makefile.am | ||