diff options
Diffstat (limited to 'kerberosIV/kerberos/kerberos.c')
-rw-r--r-- | kerberosIV/kerberos/kerberos.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kerberosIV/kerberos/kerberos.c b/kerberosIV/kerberos/kerberos.c index 0138f9bad86..11d85f7407e 100644 --- a/kerberosIV/kerberos/kerberos.c +++ b/kerberosIV/kerberos/kerberos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kerberos.c,v 1.13 1998/07/13 19:57:19 art Exp $ */ +/* $OpenBSD: kerberos.c,v 1.14 1998/08/16 02:42:11 art Exp $ */ /* $KTH: kerberos.c,v 1.70 1997/09/26 18:06:38 joda Exp $ */ /* @@ -575,8 +575,10 @@ add_port(struct port_spec **ports, int *num_ports, int port, int type) { struct port_spec *tmp; tmp = realloc(*ports, (*num_ports + 1) * sizeof(*tmp)); - if(tmp == NULL) + if(tmp == NULL) { + free(*ports); return ENOMEM; + } *ports = tmp; tmp[*num_ports].port = port; tmp[*num_ports].type = type; |