mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
res_config_ldap.c: Fix mem leak in CLI "realtime show ldap status"
Change-Id: Ib2a3622b297b0363c62d23958f7a20039bcb9b4c
This commit is contained in:
@@ -2006,6 +2006,7 @@ static char *realtime_ldap_status(struct ast_cli_entry *e, int cmd, struct ast_c
|
|||||||
} else {
|
} else {
|
||||||
ast_cli(a->fd, "%s for %d seconds.\n", ast_str_buffer(buf), ctimesec);
|
ast_cli(a->fd, "%s for %d seconds.\n", ast_str_buffer(buf), ctimesec);
|
||||||
}
|
}
|
||||||
|
ast_free(buf);
|
||||||
|
|
||||||
return CLI_SUCCESS;
|
return CLI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user