diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-07-07 22:10:15 +0000 |
commit | c51b924a80a17d6cf47c25c2c118385d4ecc87c8 (patch) | |
tree | 140f5252d5b8bc0aca22225c2323781d6af6e78d /monitor_wrap.c | |
parent | 8abe736dd7a27e4c2a42351287bacfd80ec42a7c (diff) |
- deraadt@cvs.openbsd.org 2002/07/04 04:15:33
[key.c monitor_wrap.c sftp-glob.c ssh-dss.c ssh-rsa.c]
patch memory leaks; grendel@zeitbombe.org
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index eb4453fc4..1719f89d2 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.14 2002/06/30 21:59:45 deraadt Exp $"); | 28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.15 2002/07/04 04:15:33 deraadt Exp $"); |
29 | 29 | ||
30 | #include <openssl/bn.h> | 30 | #include <openssl/bn.h> |
31 | #include <openssl/dh.h> | 31 | #include <openssl/dh.h> |
@@ -492,6 +492,8 @@ mm_newkeys_to_blob(int mode, u_char **blobp, u_int *lenp) | |||
492 | *lenp = len; | 492 | *lenp = len; |
493 | if (blobp != NULL) | 493 | if (blobp != NULL) |
494 | *blobp = buf; | 494 | *blobp = buf; |
495 | else | ||
496 | xfree(blobp); | ||
495 | return len; | 497 | return len; |
496 | } | 498 | } |
497 | 499 | ||