mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-04 13:49:17 +00:00
[lib] CID #37, fix error case leak, cmd_complete_command_real
2006-05-12 Paul Jakma <paul.jakma@sun.com> * command.c: (cmd_complete_command_real) Fix leak of cmd_vector in error case, Coverity CID #37.
This commit is contained in:
parent
9376c3421a
commit
d2519962b7
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* plist.c: (vty_prefix_list_uninstall) Fix potential NULL deref
|
* plist.c: (vty_prefix_list_uninstall) Fix potential NULL deref
|
||||||
of prefix and typestr strings, Coverity CID #3.
|
of prefix and typestr strings, Coverity CID #3.
|
||||||
|
* command.c: (cmd_complete_command_real) Fix leak of cmd_vector
|
||||||
|
in error case, Coverity CID #37.
|
||||||
|
|
||||||
2006-03-30 Paul Jakma <paul.jakma@sun.com>
|
2006-03-30 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: command.c,v 1.51 2005/10/26 05:49:54 paul Exp $
|
$Id: command.c,v 1.52 2006/05/12 23:19:37 paul Exp $
|
||||||
|
|
||||||
Command interpreter routine for virtual terminal [aka TeletYpe]
|
Command interpreter routine for virtual terminal [aka TeletYpe]
|
||||||
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
||||||
@ -1785,6 +1785,7 @@ cmd_complete_command_real (vector vline, struct vty *vty, int *status)
|
|||||||
|
|
||||||
if (vector_active (vline) == 0)
|
if (vector_active (vline) == 0)
|
||||||
{
|
{
|
||||||
|
vector_free (cmd_vector);
|
||||||
*status = CMD_ERR_NO_MATCH;
|
*status = CMD_ERR_NO_MATCH;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user