| Summary: | ASTERISK-12509: CLI is freeing sometimes null values | ||
| Reporter: | Eric Dantie (edantie) | Labels: | |
| Date Opened: | 2008-08-03 13:31:23 | Date Closed: | 2011-06-07 14:10:28 |
| Priority: | Trivial | Regression? | No |
| Status: | Closed/Complete | Components: | Core/General |
| Versions: | Frequency of Occurrence | ||
| Related Issues: | |||
| Environment: | Attachments: | ||
| Description: | Compiled asterisk with malloc debug and in /var/log/asterisk/mmlog is appearing various: WARNING: Freeing unused memory at (nil), in __ast_cli_unregister of cli.c, line 1632 ****** ADDITIONAL INFORMATION ****** Maybe adding a check before like: if (e->_full_cmd) will solve the problem | ||
| Comments: | By: Tilghman Lesher (tilghman) 2008-08-05 09:22:13 Calling free(NULL) is completely harmless, and we depend upon it in several places. This is not a message that we're going to fix. | ||