summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-19 15:47:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:33 -0500
commit1e86361080ed7d7b4f74dd962ea0c060f1d4e6f9 (patch)
treeeca7380cb365d9a1af1f15d5d90311fe5f9486a1
parent9034063617d42ecc1cd32249cd6e1fa46921c51a (diff)
downloadsamba-1e86361080ed7d7b4f74dd962ea0c060f1d4e6f9.tar.gz
samba-1e86361080ed7d7b4f74dd962ea0c060f1d4e6f9.tar.bz2
samba-1e86361080ed7d7b4f74dd962ea0c060f1d4e6f9.zip
r19415: oh la la, always compile before commit, I'm very sorry.
Guenther (This used to be commit bdd2e0361ce53a4f10fca767f734991797e7f927)
-rw-r--r--source3/lib/gencache.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index 1448d5a638..c58642553c 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -56,11 +56,7 @@ BOOL gencache_init(void)
/* skip file open if it's already opened */
if (cache) return True;
- asprintf(&cache_fname, "%s/%s", lock_path("gencache.tdb"));
- if (cache_fname == NULL) {
- DEBUG(0, ("Filename allocation failed.\n"));
- return False;
- }
+ cache_fname = lock_path("gencache.tdb");
DEBUG(5, ("Opening cache file at %s\n", cache_fname));
@@ -75,7 +71,6 @@ BOOL gencache_init(void)
}
}
- SAFE_FREE(cache_fname);
if (!cache) {
DEBUG(5, ("Attempt to open gencache.tdb has failed.\n"));
return False;