diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2001-02-28 00:19:57 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2001-02-28 00:19:57 +0000 |
commit | 8d82727087db5182be90a20f20175cc720c5d1e5 (patch) | |
tree | f7a64a70968946b03a6d79fcded22b5a31689f6d /contrib/sendmail/libsmdb/smdb2.c | |
parent | 167a83e7b8733416154f871e39e86ba77eb1554d (diff) | |
download | FreeBSD-src-8d82727087db5182be90a20f20175cc720c5d1e5.zip FreeBSD-src-8d82727087db5182be90a20f20175cc720c5d1e5.tar.gz |
Import sendmail 8.11.3
Diffstat (limited to 'contrib/sendmail/libsmdb/smdb2.c')
-rw-r--r-- | contrib/sendmail/libsmdb/smdb2.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/sendmail/libsmdb/smdb2.c b/contrib/sendmail/libsmdb/smdb2.c index e6f350a..af56fe9 100644 --- a/contrib/sendmail/libsmdb/smdb2.c +++ b/contrib/sendmail/libsmdb/smdb2.c @@ -1,5 +1,5 @@ /* -** Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. +** Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers. ** All rights reserved. ** ** By using this file, you agree to the terms and conditions set @@ -8,7 +8,7 @@ */ #ifndef lint -static char id[] = "@(#)$Id: smdb2.c,v 8.53.2.1.2.5 2000/10/26 00:39:56 geir Exp $"; +static char id[] = "@(#)$Id: smdb2.c,v 8.53.2.1.2.7 2001/02/14 04:07:24 gshapiro Exp $"; #endif /* ! lint */ #include <fcntl.h> @@ -359,9 +359,12 @@ int smdb2_cursor_close(cursor) SMDB_CURSOR *cursor; { + int ret; DBC *dbc = (DBC *) cursor->smdbc_impl; - return db2_error_to_smdb(dbc->c_close(dbc)); + ret = db2_error_to_smdb(dbc->c_close(dbc)); + free(cursor); + return ret; } int |