summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-23 15:51:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:03 -0500
commitfb904d2299ed72a261a990ca9a845a8261474fd7 (patch)
tree4922a3fa6d8ac9d1953cda1746dcd885be0164d9 /source3/registry
parent8cf89d2532b500b198a4a8e786144c24fad7edaa (diff)
downloadsamba-fb904d2299ed72a261a990ca9a845a8261474fd7.tar.gz
samba-fb904d2299ed72a261a990ca9a845a8261474fd7.tar.bz2
samba-fb904d2299ed72a261a990ca9a845a8261474fd7.zip
r19858: Fix a memleak, add a const
(This used to be commit ed4dc405127cefd1c222e1bdd63fcaaae8e83f13)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_perfcount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_perfcount.c b/source3/registry/reg_perfcount.c
index 26d640c87c..989457dd56 100644
--- a/source3/registry/reg_perfcount.c
+++ b/source3/registry/reg_perfcount.c
@@ -359,6 +359,7 @@ static uint32 _reg_perfcount_get_numinst(int objInd, TDB_CONTEXT *names)
memset(buf, 0, PERFCOUNT_MAX_LEN);
memcpy(buf, data.dptr, data.dsize);
+ SAFE_FREE(data.dptr);
return (uint32)atoi(buf);
}
@@ -1322,7 +1323,7 @@ static BOOL _reg_perfcount_marshall_hkpd(prs_struct *ps, PERF_DATA_BLOCK block)
/*********************************************************************
*********************************************************************/
-WERROR reg_perfcount_get_hkpd(prs_struct *ps, uint32 max_buf_size, uint32 *outbuf_len, char *object_ids)
+WERROR reg_perfcount_get_hkpd(prs_struct *ps, uint32 max_buf_size, uint32 *outbuf_len, const char *object_ids)
{
/*
* For a detailed description of the layout of this structure,