mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r19858: Fix a memleak, add a const
This commit is contained in:
parent
ab0a41c13b
commit
ed4dc40512
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user