1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Volker Lendecke
df21095ce8 Attempt to fix the build
I have no idea how this could have happened. Probably done a make and make
test in a different tree than the one I have done the push from. Sorry.

Volker
2008-11-15 00:50:33 +01:00
Volker Lendecke
3c98d5bd98 Make memcache_add_talloc NULL out the source pointer
This is an orthogonality measure to make clear this pointer now belongs to the
cache.
(cherry picked from commit e6080c6e87d6fe3995b121a772bf3f6343fa666f)
2008-11-14 20:27:46 +01:00
Volker Lendecke
f50ad76750 Actually finish memcache_add_talloc
This fixes a memleak found by Martin Zielinski <mz@seh.de>. Thanks for
looking closely!

Volker
(cherry picked from commit a31a84a078100819809e6d40dbc3df207a50a0b2)
2008-11-14 20:07:29 +01:00
Jeremy Allison
8962be69c7 Make us clean under valgrind --leak-check=full by using talloc_autofree_context() instead of NULL.
Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting
to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should
be deleted when their parent context is deleted, so freeing them at some arbitrary point later
will be a double-free.
Jeremy.
2008-11-06 20:48:13 -08:00
Jelmer Vernooij
a52e729f30 Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
Volker Lendecke
e84026a29b Fix memcache_flush()
I have no idea what I've been smoking when I checked this in :-(

Karolin, this fixes the join bug 3.0.28->3.2.0rc1

Thanks,

Volker
(This used to be commit f845dbbcee)
2008-05-20 18:38:31 +02:00
Volker Lendecke
245537f9bd Convert get_root_nt_token to memcache
(This used to be commit fada689893)
2007-12-28 17:24:39 +01:00
Volker Lendecke
3c99b7773e Convert csamuser to memcache
(This used to be commit 476d3abf9c)
2007-12-28 13:13:29 +01:00
Volker Lendecke
4418b989e7 Fix the build on Solaris
(This used to be commit 5f5e52ba7b)
2007-12-21 12:53:12 +01:00
Volker Lendecke
addf598cde Some C++ warnings
(This used to be commit 5ab82d4f57)
2007-12-21 09:58:20 +01:00
Volker Lendecke
d3d870cc07 Add memcache_add_talloc
The first memcache API only had blobs, but we have quite a few objects that are
more complex talloc'ed structues. The current one I'm looking at is the
getpwnam cache, but there are others around.
(This used to be commit ea0e5ad9a1)
2007-12-21 09:58:20 +01:00
Volker Lendecke
cc48010f41 Add a global cache
It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
(This used to be commit c131d0dc52)
2007-12-21 09:58:20 +01:00
Volker Lendecke
712a28aaae Rename cache.[ch] to memcache.[ch]
cache.h conflicts with an XFS DMAPI include on "opi" :-(
(This used to be commit b8db804e07)
2007-12-19 16:07:19 +01:00