summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-20 16:46:46 +0100
committerGerald W. Carter <jerry@samba.org>2008-01-29 15:07:41 -0600
commitcb9029dbf5b4ba5034499eb7dd8e5dd456e0abfe (patch)
treefb6faf68579755a5e62077e8e822f5fa96ed8c26 /source3
parent5dcc7f7e614fabb75b989baa064c359cef5f902e (diff)
downloadsamba-cb9029dbf5b4ba5034499eb7dd8e5dd456e0abfe.tar.gz
samba-cb9029dbf5b4ba5034499eb7dd8e5dd456e0abfe.tar.bz2
samba-cb9029dbf5b4ba5034499eb7dd8e5dd456e0abfe.zip
Fix a memleak
(This used to be commit 252c3130697d1b7fd34a5225d83cef4f32e663b2)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_eventlog_lib.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_eventlog_lib.c b/source3/rpc_server/srv_eventlog_lib.c
index 4e996ee19b..1d902fe215 100644
--- a/source3/rpc_server/srv_eventlog_lib.c
+++ b/source3/rpc_server/srv_eventlog_lib.c
@@ -148,7 +148,6 @@ bool make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32 needed,
int nbytes, reclen, len, Retention, MaxSize;
int tresv1, trecnum, timegen, timewr;
TDB_DATA key, ret;
- TALLOC_CTX *mem_ctx = NULL;
time_t current_time, exp_time;
/* discard some eventlogs */
@@ -156,10 +155,7 @@ bool make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32 needed,
/* read eventlogs from oldest_entry -- there can't be any discontinuity in recnos,
although records not necessarily guaranteed to have successive times */
/* */
- mem_ctx = talloc_init( "make_way_for_eventlogs" ); /* Homage to BPG */
- if ( mem_ctx == NULL )
- return False; /* can't allocate memory indicates bigger problems */
/* lock */
tdb_lock_bystring_with_timeout( the_tdb, EVT_NEXT_RECORD, 1 );
/* read */