From 5480c54e56f0e2d89cff1c6de8100ed821302b4f Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Wed, 7 Nov 2007 00:16:03 +0000
Subject: [PATCH] Fix another CLI command so it doesn't run the real code when
 called for initialization.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/astmm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/astmm.c b/main/astmm.c
index 099f12561b..fd0b3d6fa9 100644
--- a/main/astmm.c
+++ b/main/astmm.c
@@ -391,7 +391,7 @@ static char *handle_memory_show_summary(struct ast_cli_entry *e, int cmd, struct
 			"Usage: memory show summary [<file>]\n"
 			"       Summarizes heap memory allocations by file, or optionally\n"
 			"by function, if a file is specified\n";
-		break;
+		return NULL;
 	case CLI_GENERATE:
 		return NULL;
 	}
-- 
GitLab