[sftp-glob.c ssh-agent.c ssh-keygen.c]
     free() -> xfree()
This commit is contained in:
Ben Lindstrom 2001-04-04 01:53:20 +00:00
parent 0d3e8fafa4
commit 86ebcb6cf5
4 changed files with 12 additions and 9 deletions

View File

@ -3,6 +3,9 @@
- deraadt@cvs.openbsd.org 2001/04/02 17:32:23
[ssh-agent.1]
grammar; slade@shore.net
- stevesk@cvs.openbsd.org 2001/04/03 13:56:11
[sftp-glob.c ssh-agent.c ssh-keygen.c]
free() -> xfree()
20010403
- OpenBSD CVS Sync
@ -4813,4 +4816,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.1048 2001/04/04 01:51:25 mouring Exp $
$Id: ChangeLog,v 1.1049 2001/04/04 01:53:20 mouring Exp $

View File

@ -23,7 +23,7 @@
*/
#include "includes.h"
RCSID("$OpenBSD: sftp-glob.c,v 1.2 2001/03/16 08:16:18 djm Exp $");
RCSID("$OpenBSD: sftp-glob.c,v 1.3 2001/04/03 13:56:11 stevesk Exp $");
#include "ssh.h"
#include "buffer.h"
@ -104,7 +104,7 @@ struct dirent *fudge_readdir(struct SFTP_OPENDIR *od)
void fudge_closedir(struct SFTP_OPENDIR *od)
{
free_sftp_dirents(od->dir);
free(od);
xfree(od);
}
void attrib_to_stat(Attrib *a, struct stat *st)

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ssh-agent.c,v 1.53 2001/03/26 23:23:24 markus Exp $ */
/* $OpenBSD: ssh-agent.c,v 1.54 2001/04/03 13:56:11 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@ -37,7 +37,7 @@
*/
#include "includes.h"
RCSID("$OpenBSD: ssh-agent.c,v 1.53 2001/03/26 23:23:24 markus Exp $");
RCSID("$OpenBSD: ssh-agent.c,v 1.54 2001/04/03 13:56:11 stevesk Exp $");
#include <openssl/evp.h>
#include <openssl/md5.h>
@ -563,9 +563,9 @@ prepare_select(fd_set **fdrp, fd_set **fdwp, int *fdl)
sz = howmany(n+1, NFDBITS) * sizeof(fd_mask);
if (*fdrp == NULL || n > *fdl) {
if (*fdrp)
free(*fdrp);
xfree(*fdrp);
if (*fdwp)
free(*fdwp);
xfree(*fdwp);
*fdrp = xmalloc(sz);
*fdwp = xmalloc(sz);
*fdl = n;

View File

@ -12,7 +12,7 @@
*/
#include "includes.h"
RCSID("$OpenBSD: ssh-keygen.c,v 1.53 2001/03/26 23:23:24 markus Exp $");
RCSID("$OpenBSD: ssh-keygen.c,v 1.54 2001/04/03 13:56:11 stevesk Exp $");
#include <openssl/evp.h>
#include <openssl/pem.h>
@ -256,7 +256,7 @@ do_convert_private_ssh2_from_blob(char *blob, int blen)
key_sign(key, &sig, &slen, data, sizeof data);
key_verify(key, sig, slen, data, sizeof data);
free(sig);
xfree(sig);
}
#endif
return key;