summaryrefslogtreecommitdiff
path: root/source3/registry/reg_perfcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_perfcount.c')
-rw-r--r--source3/registry/reg_perfcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c
index dec57a5ec7..ce67b68a83 100644
--- a/source3/registry/reg_perfcount.c
+++ b/source3/registry/reg_perfcount.c
@@ -37,7 +37,7 @@ PERF_OBJECT_TYPE *_reg_perfcount_find_obj(PERF_DATA_BLOCK *block, int objind);
static char* counters_directory( const char *dbname )
{
- static pstring fname;
+ pstring fname;
fstring path;
if ( !dbname )
@@ -47,7 +47,7 @@ static char* counters_directory( const char *dbname )
pstrcpy( fname, lock_path( path ) );
- return fname;
+ return talloc_strdup(talloc_tos(), fname);
}
/*********************************************************************