diff options
author | Richard Levitte <levitte@openssl.org> | 2004-07-19 18:36:28 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-07-19 18:36:28 +0200 |
commit | 210a4f78ae78799f7dc8f4b115c3727eb2d24bd8 (patch) | |
tree | c7d809227ecc70c1665c0fc700fbc7294fdcb370 /crypto/LPdir_win.c | |
parent | Since version 7.0, The C RTL in VMS handles time in terms of UTC (diff) | |
download | openssl-210a4f78ae78799f7dc8f4b115c3727eb2d24bd8.tar.xz openssl-210a4f78ae78799f7dc8f4b115c3727eb2d24bd8.zip |
Imported from LPlib, making sure the entry name (at least on Unix) is
NUL-teminated at all times, and that we don't make unneeded calls to
free().
Diffstat (limited to 'crypto/LPdir_win.c')
-rw-r--r-- | crypto/LPdir_win.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/LPdir_win.c b/crypto/LPdir_win.c index fdd955fe38..1a2663cf1e 100644 --- a/crypto/LPdir_win.c +++ b/crypto/LPdir_win.c @@ -1,4 +1,4 @@ -/* $LP: LPlib/source/LPdir_win.c,v 1.1 2004/06/14 10:07:56 _cvs_levitte Exp $ */ +/* $LP: LPlib/source/LPdir_win.c,v 1.3 2004/07/19 16:34:54 _cvs_levitte Exp $ */ /* * Copyright (c) 2004, Richard Levitte <richard@levitte.org> * All rights reserved. @@ -53,7 +53,6 @@ const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) if (*ctx == NULL) { errno = ENOMEM; - free(*ctx); return 0; } memset(*ctx, '\0', sizeof(LP_DIR_CTX)); @@ -68,7 +67,6 @@ const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) { errno = ENOMEM; free(*ctx); - free(wdir); return 0; } |