res_config_ldap.c: Fix mem leak in CLI "realtime show ldap status"

Change-Id: Ib2a3622b297b0363c62d23958f7a20039bcb9b4c
This commit is contained in:
Richard Mudgett
2018-07-17 10:18:28 -05:00
parent 694503d378
commit 33668ab46a

View File

@@ -2006,6 +2006,7 @@ static char *realtime_ldap_status(struct ast_cli_entry *e, int cmd, struct ast_c
} else {
ast_cli(a->fd, "%s for %d seconds.\n", ast_str_buffer(buf), ctimesec);
}
ast_free(buf);
return CLI_SUCCESS;
}