svn commit: samba r19858 - in branches/SAMBA_3_0/source/registry: .
vlendec at samba.org
vlendec at samba.org
Thu Nov 23 15:51:20 GMT 2006
Author: vlendec
Date: 2006-11-23 15:51:20 +0000 (Thu, 23 Nov 2006)
New Revision: 19858
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19858
Log:
Fix a memleak, add a const
Modified:
branches/SAMBA_3_0/source/registry/reg_perfcount.c
Changeset:
Modified: branches/SAMBA_3_0/source/registry/reg_perfcount.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_perfcount.c 2006-11-23 15:39:37 UTC (rev 19857)
+++ branches/SAMBA_3_0/source/registry/reg_perfcount.c 2006-11-23 15:51:20 UTC (rev 19858)
@@ -359,6 +359,7 @@
memset(buf, 0, PERFCOUNT_MAX_LEN);
memcpy(buf, data.dptr, data.dsize);
+ SAFE_FREE(data.dptr);
return (uint32)atoi(buf);
}
@@ -1322,7 +1323,7 @@
/*********************************************************************
*********************************************************************/
-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,
More information about the samba-cvs
mailing list