]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix the memory show allocations CLI command so that it doesn't spew out all
authorRussell Bryant <russell@russellbryant.com>
Tue, 6 Nov 2007 19:51:37 +0000 (19:51 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 6 Nov 2007 19:51:37 +0000 (19:51 +0000)
of the current memory allocations when you start Asterisk, when the command's
handler gets called for initialization.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/astmm.c

index 1eee41df9286a5299aa2b8be76fdee660707e600..099f12561bbc18a538fda1b7d773cb2c85bc451c 100644 (file)
@@ -323,7 +323,7 @@ static char *handle_memory_show(struct ast_cli_entry *e, int cmd, struct ast_cli
                        "Usage: memory show allocations [<file>]\n"
                        "       Dumps a list of all segments of allocated memory, optionally\n"
                        "       limited to those from a specific file\n";
-               break;
+               return NULL;
        case CLI_GENERATE:
                return NULL;
        }