From: Russell Bryant Date: Tue, 6 Nov 2007 19:51:37 +0000 (+0000) Subject: Fix the memory show allocations CLI command so that it doesn't spew out all X-Git-Tag: 1.6.0-beta1~3^2~972 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ab1541da96348a2e8ec2dc5d91682a8da4f8209;p=thirdparty%2Fasterisk.git Fix the memory show allocations CLI command so that it doesn't spew out all 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 --- diff --git a/main/astmm.c b/main/astmm.c index 1eee41df92..099f12561b 100644 --- a/main/astmm.c +++ b/main/astmm.c @@ -323,7 +323,7 @@ static char *handle_memory_show(struct ast_cli_entry *e, int cmd, struct ast_cli "Usage: memory show allocations []\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; }