Replace deprecated talloc_init calls with talloc_named
authorJulien Kerihuel <j.kerihuel@openchange.org>
Sun, 25 Jan 2009 16:31:29 +0000 (16:31 +0000)
committerJulien Kerihuel <j.kerihuel@openchange.org>
Sun, 25 Jan 2009 16:31:29 +0000 (16:31 +0000)
This commit removes some valgrind loss records talloc_init was responsible for

64 files changed:
doc/examples/fetchappointment.c
doc/examples/fetchmail.c
doc/examples/mapi_sample1.c
libmapi++/impl/session.ipp
libmapi/FXICS.c
libmapi/IMAPIContainer.c
libmapi/IMAPIFolder.c
libmapi/IMAPIProp.c
libmapi/IMAPISession.c
libmapi/IMAPISupport.c
libmapi/IMAPITable.c
libmapi/IMessage.c
libmapi/IMsgStore.c
libmapi/IProfAdmin.c
libmapi/IStoreFolder.c
libmapi/IStream.c
libmapi/IUnknown.c
libmapi/IXPLogon.c
libmapi/cdo_mapi.c
libmapi/emsmdb.c
libmapi/mapidump.c
libmapi/nspi.c
libmapi/property.c
libmapi/simple_mapi.c
libmapiadmin/mapiadmin_user.c
libocpf/ocpf_public.c
mapiproxy/dcesrv_mapiproxy_server.c
mapiproxy/servers/default/emsmdb/emsmdbp.c
mapiproxy/servers/default/nspi/emsabp.c
mapiproxy/servers/default/nspi/emsabp_tdb.c
torture/mapi_bookmark.c
torture/mapi_common.c
torture/mapi_copymail.c
torture/mapi_createuser.c
torture/mapi_criteria.c
torture/mapi_deletemail.c
torture/mapi_fetchappointment.c
torture/mapi_fetchattach.c
torture/mapi_fetchcontacts.c
torture/mapi_fetchmail.c
torture/mapi_fetchtasks.c
torture/mapi_namedprops.c
torture/mapi_newmail.c
torture/mapi_permissions.c
torture/mapi_recipient.c
torture/mapi_restrictions.c
torture/mapi_sendappointment.c
torture/mapi_sendattach.c
torture/mapi_sendcontacts.c
torture/mapi_sendmail.c
torture/mapi_sendmail_html.c
torture/mapi_sendtasks.c
torture/mapi_sorttable.c
torture/nspi_profile.c
torture/nspi_resolvenames.c
utils/backup/openchangemapidump.c
utils/exchange2ical/exchange2ical.c
utils/exchange2mbox.c
utils/mapiprofile.c
utils/mapitest/mapitest.c
utils/mapitest/modules/module_errorchecks.c
utils/openchangeclient.c
utils/openchangepfadmin.c
utils/schemaIDGUID.c

index a074831e72c884daccf559822f8311eb0fd27826..8a3cb5d7c7e350ad683750a34f1cf56b2e050942 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
        uint32_t                        Denominator;
         uint32_t                        i;
 
-       mem_ctx = talloc_init("fetchappointment");
+       mem_ctx = talloc_named(NULL, 0, "fetchappointment");
 
         /* Initialize MAPI */
        profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB, getenv("HOME"));
@@ -57,12 +57,10 @@ int main(int argc, char *argv[])
         MAPI_RETVAL_IF(retval, retval, NULL);
 
         /* Create the MAPI table view */
-        mem_ctx = talloc_init("MAPI Table");
         SPropTagArray = set_SPropTagArray(mem_ctx, 0x2, PR_FID, PR_MID);
         retval = SetColumns(&obj_table, SPropTagArray);
         MAPIFreeBuffer(SPropTagArray);
         MAPI_RETVAL_IF(retval, retval, mem_ctx);
-        talloc_free(mem_ctx);
 
         /* Get current cursor position */
         retval = QueryPosition(&obj_table, &Numerator, &Denominator);
@@ -92,5 +90,8 @@ int main(int argc, char *argv[])
 
         /* Uninitialize MAPI */
         MAPIUninitialize();
+
+       talloc_free(mem_ctx);
+
         return (0);
 }
index 780130b1148265c966f6ac213b8fcdef52a286bb..f060aafc02ee67ad8b086be883017a4021c81261 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
        uint32_t                        Denominator;
         uint32_t                        i;
 
-       mem_ctx = talloc_init("fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "fetchmail");
 
         /* Initialize MAPI */
        profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB, getenv("HOME"));
index 3314264ed0eedc59549404a84d1757701982fdeb..52b8d8396852b75cf0180720b914baab5cfd3922 100644 (file)
@@ -10,7 +10,7 @@ int main(int argc, char *argv[])
         char                    *profdb;
         const char              *profname;
 
-        mem_ctx = talloc_init("mapi_sample1");
+        mem_ctx = talloc_named(NULL, 0, "mapi_sample1");
 
         profdb = talloc_asprintf(mem_ctx, DEFAULT_PROFDB_PATH, getenv("HOME"));
 
index 4cfbff7d62f9b19485c27864fac8fdfeddcb87ce..4e857c225e58761c1a6f43167ba1fe2a1391c352 100644 (file)
@@ -36,7 +36,7 @@ inline std::string session::get_default_profile_path()
 }
 
 session::session(const std::string& profiledb, bool debug) throw(std::runtime_error, mapi_exception) 
-: m_session(NULL), m_memory_ctx(talloc_init("libmapi++")), m_message_store(new message_store(*this))
+: m_session(NULL), m_memory_ctx(talloc_named(NULL, 0, "libmapi++")), m_message_store(new message_store(*this))
 {
        mapi_exception::fill_status_map();
 
index 267861bf6ee28d22162cc6a02d3495accf3238cd..786e5141e844bc51800fe5cf387d38bf3bfea5ea 100644 (file)
@@ -71,7 +71,7 @@ _PUBLIC_ enum MAPISTATUS GetLocalReplicaIds(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetLocalReplicaIds");
+       mem_ctx = talloc_named(NULL, 0, "GetLocalReplicaIds");
        size = 0;
 
        /* Fill the GetLocalReplicaIds operation */
index ae76ad854025e56b8b4e98d7178798347852941d..80a0dc181c1f01a4ba7e4a6761ad5d2772e0452d 100644 (file)
@@ -98,7 +98,7 @@ _PUBLIC_ enum MAPISTATUS GetContentsTable(mapi_object_t *obj_container, mapi_obj
        session = mapi_object_get_session(obj_container);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetContentsTable");
+       mem_ctx = talloc_named(NULL, 0, "GetContentsTable");
        size = 0;
 
        /* Fill the GetContentsTable operation */
@@ -218,7 +218,7 @@ _PUBLIC_ enum MAPISTATUS GetHierarchyTable(mapi_object_t *obj_container, mapi_ob
        session = mapi_object_get_session(obj_container);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetHierarchyTable");
+       mem_ctx = talloc_named(NULL, 0, "GetHierarchyTable");
        size = 0;
 
        /* Fill the GetHierarchyTable operation */
@@ -307,7 +307,7 @@ _PUBLIC_ enum MAPISTATUS GetTable(mapi_object_t *obj_container, mapi_object_t *o
        session = mapi_object_get_session(obj_container);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetTable");
+       mem_ctx = talloc_named(NULL, 0, "GetTable");
        size = 0;
 
        /* Fill the GetTable operation */
@@ -396,7 +396,7 @@ _PUBLIC_ enum MAPISTATUS GetRulesTable(mapi_object_t *obj_folder,
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetRulesTable");
+       mem_ctx = talloc_named(NULL, 0, "GetRulesTable");
        size = 0;
 
        /* Fill the GetRulesTable operation */
@@ -487,7 +487,7 @@ _PUBLIC_ enum MAPISTATUS ModifyTable(mapi_object_t *obj_table, struct mapi_SRowL
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ModifyTable");
+       mem_ctx = talloc_named(NULL, 0, "ModifyTable");
        size = 0;
 
        /* Fill the GetTable operation */
@@ -599,7 +599,7 @@ _PUBLIC_ enum MAPISTATUS SetSearchCriteria(mapi_object_t *obj_container,
        session = mapi_object_get_session(obj_container);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetSearchCriteria");
+       mem_ctx = talloc_named(NULL, 0, "SetSearchCriteria");
        size = 0;
 
        /* Fill the SetSearchCriteria operation */
@@ -700,7 +700,7 @@ _PUBLIC_ enum MAPISTATUS GetSearchCriteria(mapi_object_t *obj_container,
        session = mapi_object_get_session(obj_container);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetSearchCriteria");
+       mem_ctx = talloc_named(NULL, 0, "GetSearchCriteria");
        size = 0;
 
        /* Fill the GetSearchCriteria operation */
index 76ea6b5eaef655a6b82b9d72c5a4dbe6a4d95560..29f4da42623e9998a557c261b72570be90700f05 100644 (file)
@@ -64,7 +64,7 @@ _PUBLIC_ enum MAPISTATUS CreateMessage(mapi_object_t *obj_folder, mapi_object_t
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CreateMessage");
+       mem_ctx = talloc_named(NULL, 0, "CreateMessage");
        size = 0;
 
        /* Fill the OpenFolder operation */
@@ -150,7 +150,7 @@ _PUBLIC_ enum MAPISTATUS DeleteMessage(mapi_object_t *obj_folder, mapi_id_t *id_
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("DeleteMessages");
+       mem_ctx = talloc_named(NULL, 0, "DeleteMessages");
        size = 0;
 
        /* Fill the DeleteMessages operation */
@@ -231,7 +231,7 @@ _PUBLIC_ enum MAPISTATUS GetMessageStatus(mapi_object_t *obj_folder,
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetMessageStatus");
+       mem_ctx = talloc_named(NULL, 0, "GetMessageStatus");
        size = 0;
 
        /* Fill the GetMessageStatus operation */
@@ -325,7 +325,7 @@ _PUBLIC_ enum MAPISTATUS SetMessageStatus(mapi_object_t *obj_folder,
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetMessageStatus");
+       mem_ctx = talloc_named(NULL, 0, "SetMessageStatus");
        size = 0;
 
        /* Fill the SetMessageStatus operation */
@@ -417,7 +417,7 @@ _PUBLIC_ enum MAPISTATUS MoveCopyMessages(mapi_object_t *obj_src,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(session[0] != session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("MoveCopyMessages");
+       mem_ctx = talloc_named(NULL, 0, "MoveCopyMessages");
        size = 0;
 
        /* Fill the CopyMessage operation */
@@ -527,7 +527,7 @@ _PUBLIC_ enum MAPISTATUS CreateFolder(mapi_object_t *obj_parent,
                        ulFolderType != FOLDER_SEARCH),
                       MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CreateFolder");
+       mem_ctx = talloc_named(NULL, 0, "CreateFolder");
        size = 0;
 
        /* Fill the CreateFolder operation */
@@ -652,7 +652,7 @@ _PUBLIC_ enum MAPISTATUS EmptyFolder(mapi_object_t *obj_folder)
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("EmptyFolder");
+       mem_ctx = talloc_named(NULL, 0, "EmptyFolder");
        size = 0;
 
        /* Fill the EmptyFolder operation */
@@ -742,7 +742,7 @@ _PUBLIC_ enum MAPISTATUS DeleteFolder(mapi_object_t *obj_parent,
                             (!(DeleteFolderFlags & 0x10)), 
                             MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("DeleteFolder");
+       mem_ctx = talloc_named(NULL, 0, "DeleteFolder");
        size = 0;
 
        /* Fill the DeleteFolder operation */
@@ -833,7 +833,7 @@ _PUBLIC_ enum MAPISTATUS MoveFolder(mapi_object_t *obj_folder,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!session[2], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("MoveFolder");
+       mem_ctx = talloc_named(NULL, 0, "MoveFolder");
        size = 0;
 
        /* Fill the MoveFolder operation */
@@ -940,7 +940,7 @@ _PUBLIC_ enum MAPISTATUS CopyFolder(mapi_object_t *obj_folder,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!session[2], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CopyFolder");
+       mem_ctx = talloc_named(NULL, 0, "CopyFolder");
 
        size = 0;
 
@@ -1044,7 +1044,7 @@ _PUBLIC_ enum MAPISTATUS SetReadFlags(mapi_object_t *obj_folder,
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetReadFlags");
+       mem_ctx = talloc_named(NULL, 0, "SetReadFlags");
 
        size = 0;
 
index 9ff366722244609db94bbbea5725fb1057cb2dee..b1c691d6356beeb41376dd9148b41b4422f3e46a 100644 (file)
@@ -81,7 +81,7 @@ _PUBLIC_ enum MAPISTATUS GetProps(mapi_object_t *obj,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetProps");
+       mem_ctx = talloc_named(NULL, 0, "GetProps");
 
        /* Named property mapping */
        nameid = mapi_nameid_new(mem_ctx);
@@ -200,7 +200,7 @@ _PUBLIC_ enum MAPISTATUS SetProps(mapi_object_t *obj, struct SPropValue *lpProps
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetProps");
+       mem_ctx = talloc_named(NULL, 0, "SetProps");
        size = 0;
 
        /* Named property mapping */
@@ -314,7 +314,7 @@ _PUBLIC_ enum MAPISTATUS SaveChangesAttachment(mapi_object_t *obj_parent,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(session[0] != session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SaveChangesAttachment");
+       mem_ctx = talloc_named(NULL, 0, "SaveChangesAttachment");
        size = 0;
 
        /* Fill the SaveChangesAttachment operation */
@@ -388,7 +388,7 @@ _PUBLIC_ enum MAPISTATUS GetPropList(mapi_object_t *obj,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetPropList");
+       mem_ctx = talloc_named(NULL, 0, "GetPropList");
 
        /* Reset */
        proptags->cValues = 0;
@@ -472,7 +472,7 @@ _PUBLIC_ enum MAPISTATUS GetPropsAll(mapi_object_t *obj,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetPropsAll");
+       mem_ctx = talloc_named(NULL, 0, "GetPropsAll");
        size = 0;
 
        /* Fill the GetPropsAll operation */
@@ -547,7 +547,7 @@ _PUBLIC_ enum MAPISTATUS DeleteProps(mapi_object_t *obj,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("DeleteProps");
+       mem_ctx = talloc_named(NULL, 0, "DeleteProps");
        size = 0;
 
        /* Fill the DeleteProps operation */
@@ -623,7 +623,7 @@ _PUBLIC_ enum MAPISTATUS DeletePropertiesNoReplicate(mapi_object_t *obj,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("DeletePropertiesNoReplicate");
+       mem_ctx = talloc_named(NULL, 0, "DeletePropertiesNoReplicate");
        size = 0;
 
        /* Fill the DeletePropertiesNoReplicate operation */
@@ -707,7 +707,7 @@ _PUBLIC_ enum MAPISTATUS GetNamesFromIDs(mapi_object_t *obj,
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
        /* Initialization */
-       mem_ctx = talloc_init("GetNamesFromIDs");
+       mem_ctx = talloc_named(NULL, 0, "GetNamesFromIDs");
        size = 0;
 
        /* Fill the GetNamesFromIDs operation */
@@ -809,7 +809,7 @@ _PUBLIC_ enum MAPISTATUS GetIDsFromNames(mapi_object_t *obj,
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
        /* Initialization */
-       mem_ctx = talloc_init("GetIDsFromNames");
+       mem_ctx = talloc_named(NULL, 0, "GetIDsFromNames");
        size = 0;
        
        /* Fill the GetIDsFromNames operation */
@@ -916,7 +916,7 @@ _PUBLIC_ enum MAPISTATUS QueryNamedProperties(mapi_object_t *obj,
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
        /* Initialization */
-       mem_ctx = talloc_init("QueryNamesFromIDs");
+       mem_ctx = talloc_named(NULL, 0, "QueryNamesFromIDs");
        size = 0;
 
        /* Fill the QueryNamedProperties operation */
@@ -1025,7 +1025,7 @@ _PUBLIC_ enum MAPISTATUS CopyProps(mapi_object_t *obj_src,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(session[0] != session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CopyProps");
+       mem_ctx = talloc_named(NULL, 0, "CopyProps");
        size = 0;
 
        /* Fill the CopyProperties operation */
@@ -1139,7 +1139,7 @@ _PUBLIC_ enum MAPISTATUS CopyTo(mapi_object_t *obj_src,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(session[0] != session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CopyProps");
+       mem_ctx = talloc_named(NULL, 0, "CopyProps");
        size = 0;
 
        /* Fill the CopyProperties operation */
index 96086f3d37a4d46f7f20c102ca716a29fe551978..31891ffdd44545bd2d22928cfa29c2ed6a89cc9c 100644 (file)
@@ -68,7 +68,7 @@ _PUBLIC_ enum MAPISTATUS OpenPublicFolder(struct mapi_session *session,
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!session->profile, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("OpenPublicFolder");
+       mem_ctx = talloc_named(NULL, 0, "OpenPublicFolder");
        size = 0;
 
        /* Fill the Logon operation */
@@ -216,7 +216,7 @@ _PUBLIC_ enum MAPISTATUS OpenUserMailbox(struct mapi_session *session,
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!session->profile, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("OpenMsgStore");
+       mem_ctx = talloc_named(NULL, 0, "OpenMsgStore");
        size = 0;
 
        if (!username) {
index 4f21d8f27df83d4899c0d6ac284ae15ea3cd32a6..4c553fa3ba98f741c21253b4104a694df879ade7 100644 (file)
@@ -94,7 +94,7 @@ _PUBLIC_ enum MAPISTATUS Subscribe(mapi_object_t *obj, uint32_t       *connection,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("Subscribe");
+       mem_ctx = talloc_named(NULL, 0, "Subscribe");
 
        /* Fill the Subscribe operation */
        request.handle_idx = 0x1;
index a752f7a59fff4893ff8f10d91adf68d596f8980b..88752b8de61cca87febf871679a414e8015791ab 100644 (file)
@@ -70,7 +70,7 @@ _PUBLIC_ enum MAPISTATUS SetColumns(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetColumns");
+       mem_ctx = talloc_named(NULL, 0, "SetColumns");
        size = 0;
 
        /* Fill the SetColumns operation */
@@ -163,7 +163,7 @@ _PUBLIC_ enum MAPISTATUS QueryPosition(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("QueryPosition");
+       mem_ctx = talloc_named(NULL, 0, "QueryPosition");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -250,7 +250,7 @@ _PUBLIC_ enum MAPISTATUS QueryRows(mapi_object_t *obj_table, uint16_t row_count,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("QueryRows");
+       mem_ctx = talloc_named(NULL, 0, "QueryRows");
        size = 0;
 
        /* Fill the QueryRows operation */
@@ -338,7 +338,7 @@ _PUBLIC_ enum MAPISTATUS QueryColumns(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!obj_table, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("QueryColumns");
+       mem_ctx = talloc_named(NULL, 0, "QueryColumns");
 
        cols->cValues = 0;
        size = 0;
@@ -426,7 +426,7 @@ _PUBLIC_ enum MAPISTATUS SeekRow(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SeekRow");
+       mem_ctx = talloc_named(NULL, 0, "SeekRow");
        *row = 0;
 
        /* Fill the SeekRow operation */
@@ -519,7 +519,7 @@ _PUBLIC_ enum MAPISTATUS SeekRowBookmark(mapi_object_t *obj_table,
        retval = mapi_object_bookmark_find(obj_table, lpbkPosition, &bin);
        OPENCHANGE_RETVAL_IF(retval, MAPI_E_INVALID_BOOKMARK, NULL);
 
-       mem_ctx = talloc_init("SeekRowBookmark");
+       mem_ctx = talloc_named(NULL, 0, "SeekRowBookmark");
 
        /* Fill the SeekRowBookmark operation */
        size = 0;
@@ -617,7 +617,7 @@ _PUBLIC_ enum MAPISTATUS SeekRowApprox(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SeekRowApprox");
+       mem_ctx = talloc_named(NULL, 0, "SeekRowApprox");
        
        /* Fill the SeekRowApprox operation */
        size = 0;
@@ -695,7 +695,7 @@ _PUBLIC_ enum MAPISTATUS CreateBookmark(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CreateBookmark");        
+       mem_ctx = talloc_named(NULL, 0, "CreateBookmark");      
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -793,7 +793,7 @@ _PUBLIC_ enum MAPISTATUS FreeBookmark(mapi_object_t *obj_table,
        bookmark = table->bookmark;
        OPENCHANGE_RETVAL_IF(!bookmark, MAPI_E_INVALID_BOOKMARK, NULL);
 
-       mem_ctx = talloc_init("FreeBookmark");
+       mem_ctx = talloc_named(NULL, 0, "FreeBookmark");
 
        while (bookmark) {
                if (bookmark->index == bkPosition) {
@@ -881,7 +881,7 @@ _PUBLIC_ enum MAPISTATUS SortTable(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SortTable");
+       mem_ctx = talloc_named(NULL, 0, "SortTable");
 
        /* Fill the SortTable operation */
        size = 0;
@@ -1022,7 +1022,7 @@ _PUBLIC_ enum MAPISTATUS Reset(mapi_object_t *obj_table)
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("Reset");
+       mem_ctx = talloc_named(NULL, 0, "Reset");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -1110,7 +1110,7 @@ _PUBLIC_ enum MAPISTATUS Restrict(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("Restrict");
+       mem_ctx = talloc_named(NULL, 0, "Restrict");
 
        /* Fill the Restrict operation */
        size = 0;
@@ -1220,7 +1220,7 @@ _PUBLIC_ enum MAPISTATUS FindRow(mapi_object_t *obj_table,
                OPENCHANGE_RETVAL_IF(retval, MAPI_E_INVALID_BOOKMARK, NULL);
        }
 
-       mem_ctx = talloc_init("FindRow");
+       mem_ctx = talloc_named(NULL, 0, "FindRow");
 
        /* Fill the FindRow operation */
        size = 0;
@@ -1328,7 +1328,7 @@ _PUBLIC_ enum MAPISTATUS GetStatus(mapi_object_t *obj_table, uint8_t *TableStatu
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetStatus");
+       mem_ctx = talloc_named(NULL, 0, "GetStatus");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -1401,7 +1401,7 @@ _PUBLIC_ enum MAPISTATUS Abort(mapi_object_t *obj_table, uint8_t *TableStatus)
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("Abort");
+       mem_ctx = talloc_named(NULL, 0, "Abort");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -1496,7 +1496,7 @@ _PUBLIC_ enum MAPISTATUS ExpandRow(mapi_object_t *obj_table, uint64_t categoryId
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ExpandRow");
+       mem_ctx = talloc_named(NULL, 0, "ExpandRow");
        size = 0;
 
        /* Fill the ExpandRow operation */
@@ -1594,7 +1594,7 @@ _PUBLIC_ enum MAPISTATUS CollapseRow(mapi_object_t *obj_table, uint64_t category
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CollapseRow");
+       mem_ctx = talloc_named(NULL, 0, "CollapseRow");
        size = 0;
 
        /* Fill the CollapseRow operation */
@@ -1684,7 +1684,7 @@ _PUBLIC_ enum MAPISTATUS GetCollapseState(mapi_object_t *obj_table, uint64_t row
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
        
-       mem_ctx = talloc_init("GetCollapseState");
+       mem_ctx = talloc_named(NULL, 0, "GetCollapseState");
        size = 0;
 
        /* Fill the GetCollapseState operation */
@@ -1782,7 +1782,7 @@ _PUBLIC_ enum MAPISTATUS SetCollapseState(mapi_object_t *obj_table,
        session = mapi_object_get_session(obj_table);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
        
-       mem_ctx = talloc_init("SetCollapseState");
+       mem_ctx = talloc_named(NULL, 0, "SetCollapseState");
        size = 0;
 
        /* Fill the SetCollapseState operation */
index 69b63ce5cec5b71c374293cf281763fc6205eb39..976673e749cca6a8c2b93c4f6eff7db02168308b 100644 (file)
@@ -68,7 +68,7 @@ _PUBLIC_ enum MAPISTATUS CreateAttach(mapi_object_t *obj_message,
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CreateAttach");
+       mem_ctx = talloc_named(NULL, 0, "CreateAttach");
        size = 0;
 
        /* Fill the CreateAttach operation */
@@ -145,7 +145,7 @@ _PUBLIC_ enum MAPISTATUS DeleteAttach(mapi_object_t *obj_message, uint32_t Attac
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("DeleteAttach");
+       mem_ctx = talloc_named(NULL, 0, "DeleteAttach");
        size = 0;
 
        /* Fill the DeleteAttach operation */
@@ -216,7 +216,7 @@ _PUBLIC_ enum MAPISTATUS GetAttachmentTable(mapi_object_t *obj_message,
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetAttachmentTable");
+       mem_ctx = talloc_named(NULL, 0, "GetAttachmentTable");
        size = 0;
 
        /* Fill the GetAttachmentTable operation */
@@ -298,7 +298,7 @@ _PUBLIC_ enum MAPISTATUS OpenAttach(mapi_object_t *obj_message, uint32_t Attachm
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("OpenAttach");
+       mem_ctx = talloc_named(NULL, 0, "OpenAttach");
        size = 0;
 
        /* Fill the OpenAttach operation */
@@ -502,7 +502,7 @@ _PUBLIC_ enum MAPISTATUS ModifyRecipients(mapi_object_t *obj_message,
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ModifyRecipients");
+       mem_ctx = talloc_named(NULL, 0, "ModifyRecipients");
        size = 0;
 
        /* Fill the ModifyRecipients operation */
@@ -715,7 +715,7 @@ _PUBLIC_ enum MAPISTATUS ReadRecipients(mapi_object_t *obj_message,
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ReadRecipients");
+       mem_ctx = talloc_named(NULL, 0, "ReadRecipients");
        size = 0;
 
        /* Fill the ReadRecipients operation */
@@ -791,7 +791,7 @@ _PUBLIC_ enum MAPISTATUS RemoveAllRecipients(mapi_object_t *obj_message)
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("RemoveAllRecipients");
+       mem_ctx = talloc_named(NULL, 0, "RemoveAllRecipients");
        size = 0;
 
        /* Fill the RemoveAllRecipients operation */
@@ -866,7 +866,7 @@ _PUBLIC_ enum MAPISTATUS SubmitMessage(mapi_object_t *obj_message)
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SubmitMessage");
+       mem_ctx = talloc_named(NULL, 0, "SubmitMessage");
        size = 0;
 
        /* Fill the SubmitMessage operation */
@@ -950,7 +950,7 @@ _PUBLIC_ enum MAPISTATUS AbortSubmit(mapi_object_t *obj_store,
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(session[0] != session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("AbortSubmit");
+       mem_ctx = talloc_named(NULL, 0, "AbortSubmit");
        size = 0;
 
        /* Fill the AbortSubmit operation */
@@ -1038,7 +1038,7 @@ _PUBLIC_ enum MAPISTATUS SaveChangesMessage(mapi_object_t *parent,
        OPENCHANGE_RETVAL_IF(!session[0], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SaveChangesMessage");
+       mem_ctx = talloc_named(NULL, 0, "SaveChangesMessage");
        size = 0;
 
        /* Fill the SaveChangesMessage operation */
@@ -1105,7 +1105,7 @@ _PUBLIC_ enum MAPISTATUS TransportSend(mapi_object_t *obj_message,
        session = mapi_object_get_session(obj_message);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("TransportSend");
+       mem_ctx = talloc_named(NULL, 0, "TransportSend");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -1221,7 +1221,7 @@ _PUBLIC_ enum MAPISTATUS SetMessageReadFlag(mapi_object_t *obj_folder,
        OPENCHANGE_RETVAL_IF(!session[0], MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!session[1], MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetMessageReadFlags");
+       mem_ctx = talloc_named(NULL, 0, "SetMessageReadFlags");
        size = 0;
 
        /* Fill the SetMessageReadFlags operation */
index 9547217c428a9c1aefbe96ba631915aa702bc4f6..b25a52bf7cb74f5884403277997d29c33ddac8f9 100644 (file)
@@ -65,7 +65,7 @@ _PUBLIC_ enum MAPISTATUS OpenFolder(mapi_object_t *obj_store, mapi_id_t id_folde
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("OpenFolder");
+       mem_ctx = talloc_named(NULL, 0, "OpenFolder");
 
        /* Fill the OpenFolder operation */
        request.handle_idx = 0x1;
@@ -155,7 +155,7 @@ _PUBLIC_ enum MAPISTATUS PublicFolderIsGhosted(mapi_object_t *obj_store,
        folderId = mapi_object_get_id(obj_folder);
        OPENCHANGE_RETVAL_IF(!folderId, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("PublicFolderIsGhosted");
+       mem_ctx = talloc_named(NULL, 0, "PublicFolderIsGhosted");
        size = 0;
 
        /* Fill the PublicFolderIsGhosted operation */
@@ -232,7 +232,7 @@ _PUBLIC_ enum MAPISTATUS OpenPublicFolderByName(mapi_object_t *obj_folder,
        session = mapi_object_get_session(obj_folder);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("OpenPublicFolderByName");
+       mem_ctx = talloc_named(NULL, 0, "OpenPublicFolderByName");
        size = 0;
 
        /* Fill the OpenPublicFolderByName operation */
@@ -315,7 +315,7 @@ _PUBLIC_ enum MAPISTATUS SetReceiveFolder(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetReceiveFolder");
+       mem_ctx = talloc_named(NULL, 0, "SetReceiveFolder");
 
        /* Fill the SetReceiveFolder operation */
        size = 0;
@@ -397,7 +397,7 @@ _PUBLIC_ enum MAPISTATUS GetReceiveFolder(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
        
-       mem_ctx = talloc_init("GetReceiveFolder");
+       mem_ctx = talloc_named(NULL, 0, "GetReceiveFolder");
 
        *id_folder = 0;
 
@@ -480,7 +480,7 @@ _PUBLIC_ enum MAPISTATUS GetReceiveFolderTable(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetReceiveFolderTable");
+       mem_ctx = talloc_named(NULL, 0, "GetReceiveFolderTable");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -571,7 +571,7 @@ _PUBLIC_ enum MAPISTATUS GetTransportFolder(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetTransportFolder");
+       mem_ctx = talloc_named(NULL, 0, "GetTransportFolder");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -661,7 +661,7 @@ _PUBLIC_ enum MAPISTATUS GetOwningServers(mapi_object_t *obj_store,
        FolderId = mapi_object_get_id(obj_folder);
        OPENCHANGE_RETVAL_IF(!FolderId, MAPI_E_INVALID_PARAMETER, NULL);
                
-       mem_ctx = talloc_init("GetOwningServers");
+       mem_ctx = talloc_named(NULL, 0, "GetOwningServers");
        
        size = 0;
 
@@ -747,7 +747,7 @@ _PUBLIC_ enum MAPISTATUS GetStoreState(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetStoreState");
+       mem_ctx = talloc_named(NULL, 0, "GetStoreState");
        size = 0;
 
        /* Fill the MAPI_REQ request */
index 9f4bc1bb9c233c3f67dde625708d8fdb9bb7fdba..6bce82f87a49a97e3a00ae7bef16a2ce63cb3837 100644 (file)
@@ -305,7 +305,7 @@ _PUBLIC_ enum MAPISTATUS mapi_profile_add_string_attr(const char *profile,
        OPENCHANGE_RETVAL_IF(!profile, MAPI_E_BAD_VALUE, NULL);
        OPENCHANGE_RETVAL_IF(!value, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("mapi_profile_add_string_attr");
+       mem_ctx = talloc_named(NULL, 0, "mapi_profile_add_string_attr");
        ldb_ctx = global_mapi_ctx->ldb_ctx;
 
        /* Retrieve the profile from the database */
@@ -359,7 +359,7 @@ _PUBLIC_ enum MAPISTATUS mapi_profile_modify_string_attr(const char *profname,
        OPENCHANGE_RETVAL_IF(!profname, MAPI_E_BAD_VALUE, NULL);
 
        ldb_ctx = global_mapi_ctx->ldb_ctx;
-       mem_ctx = talloc_init("mapi_profile_modify_string_attr");
+       mem_ctx = talloc_named(NULL, 0, "mapi_profile_modify_string_attr");
 
        /* Retrieve the profile from the database */
        ret = ldb_search(ldb_ctx, mem_ctx, &res, ldb_get_default_basedn(ldb_ctx), scope, attrs, "(cn=%s)(cn=Profiles)", profname);
@@ -413,7 +413,7 @@ _PUBLIC_ enum MAPISTATUS mapi_profile_delete_string_attr(const char *profname,
        OPENCHANGE_RETVAL_IF(!profname, MAPI_E_BAD_VALUE, NULL);
 
        ldb_ctx = global_mapi_ctx->ldb_ctx;
-       mem_ctx = talloc_init("mapi_profile_delete_string_attr");
+       mem_ctx = talloc_named(NULL, 0, "mapi_profile_delete_string_attr");
 
        /* Retrieve the profile from the database */
        ret = ldb_search(ldb_ctx, mem_ctx, &res, ldb_get_default_basedn(ldb_ctx), scope, attrs, "(cn=%s)(cn=Profiles)", profname);
@@ -523,7 +523,7 @@ _PUBLIC_ enum MAPISTATUS CreateProfileStore(const char *profiledb, const char *l
        OPENCHANGE_RETVAL_IF(!profiledb, MAPI_E_CALL_FAILED, NULL);
        OPENCHANGE_RETVAL_IF(!ldif_path, MAPI_E_CALL_FAILED, NULL);
 
-       mem_ctx = talloc_init("CreateProfileStore");
+       mem_ctx = talloc_named(NULL, 0, "CreateProfileStore");
 
        ev = tevent_context_init(mem_ctx);
        OPENCHANGE_RETVAL_IF(!ev, MAPI_E_NOT_ENOUGH_RESOURCES, mem_ctx);
@@ -717,7 +717,7 @@ _PUBLIC_ enum MAPISTATUS CreateProfile(const char *profile, const char *username
 
        OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("CreateProfile");
+       mem_ctx = talloc_named(NULL, 0, "CreateProfile");
        retval = ldb_create_profile(mem_ctx, global_mapi_ctx->ldb_ctx, profile);
        OPENCHANGE_RETVAL_IF(retval, retval, mem_ctx);
 
@@ -755,7 +755,7 @@ _PUBLIC_ enum MAPISTATUS DeleteProfile(const char *profile)
 
        OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("DeleteProfile");
+       mem_ctx = talloc_named(NULL, 0, "DeleteProfile");
        retval = ldb_delete_profile(mem_ctx, global_mapi_ctx->ldb_ctx, profile);
        OPENCHANGE_RETVAL_IF(retval, retval, mem_ctx);
        talloc_free(mem_ctx);
@@ -791,7 +791,7 @@ _PUBLIC_ enum MAPISTATUS ChangeProfilePassword(const char *profile,
 
        if (!profile || !old_password | !password) return MAPI_E_INVALID_PARAMETER;
 
-       mem_ctx = talloc_init("ChangeProfilePassword");
+       mem_ctx = talloc_named(NULL, 0, "ChangeProfilePassword");
 
        retval = ldb_test_password(mem_ctx, profile, password);
        OPENCHANGE_RETVAL_IF(retval, retval, mem_ctx);
@@ -900,7 +900,7 @@ _PUBLIC_ enum MAPISTATUS SetDefaultProfile(const char *profname)
        OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!profname, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetDefaultProfile");
+       mem_ctx = talloc_named(NULL, 0, "SetDefaultProfile");
 
        /* open profile */
        retval = ldb_load_profile(mem_ctx, global_mapi_ctx->ldb_ctx, &profile, profname, NULL);
index bcb76ab6a52c0821f4605e62f4d9ee9f502aeac1..fdfa3c197ad889bd1cc7cc11d4f871eba0759103 100644 (file)
@@ -85,7 +85,7 @@ _PUBLIC_ enum MAPISTATUS OpenMessage(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("OpenMessage");
+       mem_ctx = talloc_named(NULL, 0, "OpenMessage");
 
        /* Fill the OpenMessage operation */
        request.handle_idx = 0x1;
index 6861e9eb5e1ffebc36a967b7aee5918817f29a7d..d346db87ce64982b949b1aa558969d2933e657b3 100644 (file)
@@ -77,7 +77,7 @@ _PUBLIC_ enum MAPISTATUS OpenStream(mapi_object_t *obj_related, uint32_t Propert
        OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("OpenStream");
+       mem_ctx = talloc_named(NULL, 0, "OpenStream");
 
        size = 0;
 
@@ -170,7 +170,7 @@ _PUBLIC_ enum MAPISTATUS ReadStream(mapi_object_t *obj_stream, unsigned char *bu
        OPENCHANGE_RETVAL_IF(!global_mapi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ReadStream");
+       mem_ctx = talloc_named(NULL, 0, "ReadStream");
 
        *ByteRead = 0;
        size = 0;
@@ -265,7 +265,7 @@ _PUBLIC_ enum MAPISTATUS WriteStream(mapi_object_t *obj_stream, DATA_BLOB *blob,
        OPENCHANGE_RETVAL_IF(!blob, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(blob->length > 0x7000, MAPI_E_TOO_BIG, NULL);
 
-       mem_ctx = talloc_init("WriteStream");
+       mem_ctx = talloc_named(NULL, 0, "WriteStream");
 
        size = 0;
 
@@ -341,7 +341,7 @@ _PUBLIC_ enum MAPISTATUS CommitStream(mapi_object_t *obj_stream)
        OPENCHANGE_RETVAL_IF(!obj_stream, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CommitStream");
+       mem_ctx = talloc_named(NULL, 0, "CommitStream");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -407,7 +407,7 @@ _PUBLIC_ enum MAPISTATUS GetStreamSize(mapi_object_t *obj_stream, uint32_t *Stre
        session = mapi_object_get_session(obj_stream);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetStreamSize");
+       mem_ctx = talloc_named(NULL, 0, "GetStreamSize");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -490,7 +490,7 @@ _PUBLIC_ enum MAPISTATUS SeekStream(mapi_object_t *obj_stream, uint8_t Origin, u
        OPENCHANGE_RETVAL_IF((Origin > 2), MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!NewPosition, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SeekStream");
+       mem_ctx = talloc_named(NULL, 0, "SeekStream");
        size = 0;
 
        /* Fill the SeekStream operation */
@@ -567,7 +567,7 @@ _PUBLIC_ enum MAPISTATUS SetStreamSize(mapi_object_t *obj_stream, uint64_t SizeS
        session = mapi_object_get_session(obj_stream);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetStreamSize");
+       mem_ctx = talloc_named(NULL, 0, "SetStreamSize");
        size = 0;
 
        /* Fill the SetStreamSize operation */
@@ -657,7 +657,7 @@ _PUBLIC_ enum MAPISTATUS CopyToStream(mapi_object_t *obj_src, mapi_object_t *obj
        OPENCHANGE_RETVAL_IF(!ReadByteCount, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!WrittenByteCount, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("CopyToStream");
+       mem_ctx = talloc_named(NULL, 0, "CopyToStream");
        size = 0;
 
        /* Fill the CopyToStream operation */
index 28bb47e954393deb99ee2221dffe4bb53052b5a0..18877a07be3ca1584ece68ebf91134b2e4367356 100644 (file)
@@ -125,7 +125,7 @@ _PUBLIC_ enum MAPISTATUS Release(mapi_object_t *obj)
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("Release");
+       mem_ctx = talloc_named(NULL, 0, "Release");
 
        /* Fill the MAPI_REQ request */
        mapi_req = talloc_zero(mem_ctx, struct EcDoRpc_MAPI_REQ);
@@ -208,7 +208,7 @@ _PUBLIC_ enum MAPISTATUS GetLongTermIdFromId(mapi_object_t *obj, mapi_id_t id,
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("LongTermIdFromId");
+       mem_ctx = talloc_named(NULL, 0, "LongTermIdFromId");
 
        /* Fill the LongTermIdFromId operation */
        request.Id = id;
@@ -289,7 +289,7 @@ _PUBLIC_ enum MAPISTATUS GetIdFromLongTermId(mapi_object_t *obj, struct LongTerm
        session = mapi_object_get_session(obj);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("IdFromLongTermId");
+       mem_ctx = talloc_named(NULL, 0, "IdFromLongTermId");
        size = 0;
 
        /* Fill the IdFromLongTermId operation */
index a7539b15fa8f2d4dbe042a3c4b8a93963a4215f5..872bae1ef9024d1624acf0d31192771943701110 100644 (file)
@@ -69,7 +69,7 @@ _PUBLIC_ enum MAPISTATUS AddressTypes(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("AddressTypes");
+       mem_ctx = talloc_named(NULL, 0, "AddressTypes");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -138,7 +138,7 @@ _PUBLIC_ enum MAPISTATUS SetSpooler(mapi_object_t *obj_store)
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SetSpooler");
+       mem_ctx = talloc_named(NULL, 0, "SetSpooler");
        size = 0;
 
        /* Fill the MAPI_REQ request */
@@ -216,7 +216,7 @@ _PUBLIC_ enum MAPISTATUS SpoolerLockMessage(mapi_object_t *obj_store,
        session = mapi_object_get_session(obj_store);
        OPENCHANGE_RETVAL_IF(!session, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("SpoolerLockMessage");
+       mem_ctx = talloc_named(NULL, 0, "SpoolerLockMessage");
        size = 0;
 
        /* Fill the SpoolerLockMessage operation */
index 4fb45daaf475b2a5d2512738a99b67c895a3d1d9..e13028010504299ff15a37a05e667a492c097551 100644 (file)
@@ -226,7 +226,7 @@ _PUBLIC_ enum MAPISTATUS MAPIInitialize(const char *profiledb)
        OPENCHANGE_RETVAL_IF(global_mapi_ctx, MAPI_E_SESSION_LIMIT, NULL);
        OPENCHANGE_RETVAL_IF(!profiledb, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("MAPIInitialize");
+       mem_ctx = talloc_named(NULL, 0, "MAPIInitialize");
        OPENCHANGE_RETVAL_IF(!mem_ctx, MAPI_E_NOT_ENOUGH_RESOURCES, NULL);
 
        /* global context */
index 7fdfef10498057b0dc3e08b7c0204882fab355d6..0c70b55b991ac4ab064959ed5a8464ef7e4f267e 100644 (file)
@@ -405,7 +405,7 @@ NTSTATUS emsmdb_register_notification(struct NOTIFKEY *notifkey,
        session = (struct mapi_session *)global_mapi_ctx->session;
        emsmdb_ctx = (struct emsmdb_context *)session->emsmdb->ctx;
        notify_ctx = (struct mapi_notify_ctx *)session->notify_ctx;
-       mem_ctx = talloc_init("emsmdb_register_notification");
+       mem_ctx = talloc_named(NULL, 0, "emsmdb_register_notification");
 
        request.in.handle = &emsmdb_ctx->handle;
        request.in.ulEventMask = ulEventMask;
index 096bf6746e611c5a3578623c6b1c3967e051eb8f..9e3fab6346068dfa4e630c19b15872901d3ae210 100644 (file)
@@ -39,7 +39,7 @@ _PUBLIC_ void mapidump_SPropValue(struct SPropValue lpProp, const char *sep)
 
        proptag = get_proptag_name(lpProp.ulPropTag);
        if (!proptag) {
-               mem_ctx = talloc_init("mapidump_SPropValue");
+               mem_ctx = talloc_named(NULL, 0, "mapidump_SPropValue");
                proptag = talloc_asprintf(mem_ctx, "0x%.8x", lpProp.ulPropTag);
        }
        
@@ -182,7 +182,7 @@ _PUBLIC_ void mapidump_date(struct mapi_SPropValue_array *properties, uint32_t m
        const struct FILETIME   *filetime;
        const char              *date;
 
-       mem_ctx = talloc_init("mapidump_date");
+       mem_ctx = talloc_named(NULL, 0, "mapidump_date");
 
        filetime = (const struct FILETIME *) find_mapi_SPropValue_data(properties, mapitag);
        if (filetime) {
@@ -205,7 +205,7 @@ _PUBLIC_ void mapidump_date_SPropValue(struct SPropValue lpProp, const char *lab
        const struct FILETIME           *filetime;
        const char              *date;
 
-       mem_ctx = talloc_init("mapidump_date_SPropValue");
+       mem_ctx = talloc_named(NULL, 0, "mapidump_date_SPropValue");
 
        filetime = (const struct FILETIME *) get_SPropValue_data(&lpProp);
        if (filetime) {
@@ -702,7 +702,7 @@ _PUBLIC_ void mapidump_freebusy_date(uint32_t t, const char *sep)
        NTTIME          time;
        const char      *date;
 
-       mem_ctx = talloc_init("mapidump_freebusy_date");
+       mem_ctx = talloc_named(NULL, 0, "mapidump_freebusy_date");
 
        time = t;
        time *= 60;
index 85a26bb5d2bde4d00452ebbcf0c43c909a08fdc1..5bedc044fd9741c644edd410cc437a908589e210 100644 (file)
@@ -245,7 +245,7 @@ _PUBLIC_ enum MAPISTATUS nspi_QueryRows(struct nspi_context *nspi_ctx,
        /* Sanity Checks */
        OPENCHANGE_RETVAL_IF(!nspi_ctx, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("nspi_QueryRows");
+       mem_ctx = talloc_named(NULL, 0, "nspi_QueryRows");
 
        r.in.handle = &nspi_ctx->handle;
        r.in.dwFlags = 0x0;
@@ -406,7 +406,7 @@ _PUBLIC_ enum MAPISTATUS nspi_GetMatches(struct nspi_context *nspi_ctx,
        OPENCHANGE_RETVAL_IF(!ppRows, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!ppOutMIds, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("nspi_GetMatches");
+       mem_ctx = talloc_named(NULL, 0, "nspi_GetMatches");
 
        r.in.handle = &nspi_ctx->handle;
        r.in.Reserved = 0;
@@ -479,7 +479,7 @@ _PUBLIC_ enum MAPISTATUS nspi_ResortRestriction(struct nspi_context *nspi_ctx,
        OPENCHANGE_RETVAL_IF(((SortType != SortTypeDisplayName) && (SortType != SortTypePhoneticDisplayName)),
                       MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("nspi_ResortRestriction");
+       mem_ctx = talloc_named(NULL, 0, "nspi_ResortRestriction");
 
        r.in.handle = &nspi_ctx->handle;
        r.in.Reserved = 0;
@@ -998,7 +998,7 @@ _PUBLIC_ enum MAPISTATUS nspi_GetIDsFromNames(struct nspi_context *nspi_ctx,
        OPENCHANGE_RETVAL_IF(!ppNames, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!ppPropTags, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("nspi_GetIDsFromNames");
+       mem_ctx = talloc_named(NULL, 0, "nspi_GetIDsFromNames");
 
        r.in.handle = &nspi_ctx->handle;
        r.in.Reserved = 0;
@@ -1061,7 +1061,7 @@ _PUBLIC_ enum MAPISTATUS nspi_ResolveNames(struct nspi_context *nspi_ctx,
        for (count = 0; usernames[count]; count++);
        OPENCHANGE_RETVAL_IF(!count, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("nspi_ResolveNames");
+       mem_ctx = talloc_named(NULL, 0, "nspi_ResolveNames");
 
        r.in.handle = &nspi_ctx->handle;
 
@@ -1125,7 +1125,7 @@ _PUBLIC_ enum MAPISTATUS nspi_ResolveNamesW(struct nspi_context *nspi_ctx,
        for (count = 0; usernames[count]; count++);
        OPENCHANGE_RETVAL_IF(!count, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("mapi_ResolveNamesW");
+       mem_ctx = talloc_named(NULL, 0, "mapi_ResolveNamesW");
 
        r.in.handle = &nspi_ctx->handle;
 
index 8603d55a7e067a218f1ab73f662bed167504c709..225b2afbc802feb801d721f4bbb78fab8ff75870 100644 (file)
@@ -613,7 +613,7 @@ _PUBLIC_ void mapi_SPropValue_array_named(mapi_object_t *obj,
        uint16_t                count;
        uint32_t                i;
 
-       mem_ctx = talloc_init("mapi_SPropValue_array_named");
+       mem_ctx = talloc_named(NULL, 0, "mapi_SPropValue_array_named");
 
        for (i = 0; i < props->cValues; i++) {
                if ((props->lpProps[i].ulPropTag & 0xFFFF0000) > 0x80000000) {
index e56dc575bbd55f02288c1ad19db5f72895c9ff70..7c33ded0208e096ede176408fe13e9810c56bed7 100644 (file)
@@ -126,7 +126,7 @@ static enum MAPISTATUS CacheDefaultFolders(mapi_object_t *obj_store)
        store = (mapi_object_store_t *)obj_store->private_data;
        OPENCHANGE_RETVAL_IF(!store, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("GetDefaultFolder");
+       mem_ctx = talloc_named(NULL, 0, "GetDefaultFolder");
 
        mapi_object_init(&obj_inbox);
        retval = GetReceiveFolder(obj_store, &id_inbox, NULL);
@@ -400,7 +400,7 @@ _PUBLIC_ enum MAPISTATUS GetFolderItemsCount(mapi_object_t *obj_folder,
        OPENCHANGE_RETVAL_IF(!unread, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!total, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("GetFolderItemsCount");
+       mem_ctx = talloc_named(NULL, 0, "GetFolderItemsCount");
 
        SPropTagArray = set_SPropTagArray(mem_ctx, 0x2, 
                                          PR_CONTENT_UNREAD,
@@ -473,7 +473,7 @@ _PUBLIC_ enum MAPISTATUS AddUserPermission(mapi_object_t *obj_folder, const char
        OPENCHANGE_RETVAL_IF(!obj_folder, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!username, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("AddUserPermission");
+       mem_ctx = talloc_named(NULL, 0, "AddUserPermission");
 
        /* query Address book */
 
@@ -547,7 +547,7 @@ _PUBLIC_ enum MAPISTATUS ModifyUserPermission(mapi_object_t *obj_folder, const c
        OPENCHANGE_RETVAL_IF(!obj_folder, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!username, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("ModifyUserPermission");
+       mem_ctx = talloc_named(NULL, 0, "ModifyUserPermission");
 
        SPropTagArray = set_SPropTagArray(mem_ctx, 2, PR_ENTRYID, PR_DISPLAY_NAME);
        names[0] = username;
@@ -658,7 +658,7 @@ _PUBLIC_ enum MAPISTATUS RemoveUserPermission(mapi_object_t *obj_folder, const c
        OPENCHANGE_RETVAL_IF(!obj_folder, MAPI_E_INVALID_PARAMETER, NULL);
        OPENCHANGE_RETVAL_IF(!username, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("RemoveUserPermission");
+       mem_ctx = talloc_named(NULL, 0, "RemoveUserPermission");
 
        SPropTagArray = set_SPropTagArray(mem_ctx, 2, PR_ENTRYID, PR_DISPLAY_NAME);
        names[0] = username;
index c591488c77f11386c251dab59a07e7eb980838b2..cee0efe419863b898d811bed6c0270a318808d12 100644 (file)
@@ -221,7 +221,7 @@ _PUBLIC_ enum MAPISTATUS mapiadmin_user_extend(struct mapiadmin_ctx *mapiadmin_c
        dom_sid = mapiadmin_ctx->user_ctx->user_sid;
 
        /* initialize memory context */
-       mem_ctx = talloc_init("mapiadmin_user_extend");
+       mem_ctx = talloc_named(NULL, 0, "mapiadmin_user_extend");
 
        /* open LDAP connection */
        ev = tevent_context_init(talloc_autofree_context());
@@ -378,7 +378,7 @@ _PUBLIC_ enum MAPISTATUS mapiadmin_user_add(struct mapiadmin_ctx *mapiadmin_ctx)
        struct lsa_String               name;
        int                             policy_min_pw_len = 0;
 
-       mem_ctx = talloc_init("mapiadmin_user_add");
+       mem_ctx = talloc_named(NULL, 0, "mapiadmin_user_add");
 
        retval = mapiadmin_samr_connect(mapiadmin_ctx, mem_ctx);
        MAPI_RETVAL_IF(retval, retval, mem_ctx);
@@ -523,7 +523,7 @@ _PUBLIC_ enum MAPISTATUS mapiadmin_user_del(struct mapiadmin_ctx *mapiadmin_ctx)
        MAPI_RETVAL_IF(!mapiadmin_ctx, MAPI_E_NOT_INITIALIZED, NULL);
        MAPI_RETVAL_IF(!mapiadmin_ctx->username, MAPI_E_NOT_INITIALIZED, NULL);
 
-       mem_ctx = talloc_init("mapiadmin_user_del");
+       mem_ctx = talloc_named(NULL, 0, "mapiadmin_user_del");
 
        /* Initiate SAMR connection if not already done */
        if (!mapiadmin_ctx->user_ctx) {
index 2a35b1c1efb6e23063469eb4b362db0b09375467..a95c91697e4c8e5265acdda57f0dcfb8fab8fe6f 100644 (file)
@@ -50,7 +50,7 @@ _PUBLIC_ int ocpf_init(void)
        
        if (ocpf) return OCPF_ERROR;
 
-       mem_ctx = talloc_init("ocpf");
+       mem_ctx = talloc_named(NULL, 0, "ocpf");
        ocpf = talloc_zero(mem_ctx, struct ocpf);
        ocpf->mem_ctx = mem_ctx;
        ocpf->vars = talloc_zero(mem_ctx, struct ocpf_var);
index 9101bc64bbd8d00233d03268a6fe99d064c0eabe..da153238572410fc5fe98a9ea47f650b69733998 100644 (file)
@@ -289,7 +289,7 @@ _PUBLIC_ TDB_CONTEXT *mapiproxy_server_emsabp_tdb_init(struct loadparm_context *
 
        if (emsabp_tdb_ctx) return emsabp_tdb_ctx;
 
-       mem_ctx = talloc_init("mapiproxy_server_emsabp_tdb_init");
+       mem_ctx = talloc_named(NULL, 0, "mapiproxy_server_emsabp_tdb_init");
        if (!mem_ctx) return NULL;
 
        /* Step 0. Retrieve a TDB context pointer on the emsabp_tdb database */
index b9505ee4c118186a3c3a7b560bba4b94ca98b96a..f427d7e15fefa83d06390b01c17a9c2c4f5751dd 100644 (file)
@@ -50,7 +50,7 @@ _PUBLIC_ struct emsmdbp_context *emsmdbp_init(struct loadparm_context *lp_ctx)
        /* Sanity Checks */
        if (!lp_ctx) return NULL;
 
-       mem_ctx = talloc_init("emsmdbp_init");
+       mem_ctx = talloc_named(NULL, 0, "emsmdbp_init");
 
        emsmdbp_ctx = talloc_zero(mem_ctx, struct emsmdbp_context);
        if (!emsmdbp_ctx) {
index ff75df7e5aca55b109795e3f5b9ccb914919af80..b3763e579db17dd9b288d2b05636505b73970229 100644 (file)
@@ -55,7 +55,7 @@ _PUBLIC_ struct emsabp_context *emsabp_init(struct loadparm_context *lp_ctx,
        /* Sanity checks */
        if (!lp_ctx) return NULL;
 
-       mem_ctx = talloc_init("emsabp_init");
+       mem_ctx = talloc_named(NULL, 0, "emsabp_init");
        
        emsabp_ctx = talloc_zero(mem_ctx, struct emsabp_context);
        if (!emsabp_ctx) {
index acbfc77a59d6016efb10a920c9b90c1a030cf7cd..47a81fd6393dbfe1c31ffc4d814983c34a030d44 100644 (file)
@@ -215,7 +215,7 @@ static int emsabp_tdb_traverse_MId(TDB_CONTEXT *tdb_ctx,
        char            *value_str = NULL;
        uint32_t        *MId = (uint32_t *)state;
 
-       mem_ctx = talloc_init("emsabp_tdb_traverse_MId");
+       mem_ctx = talloc_named(NULL, 0, "emsabp_tdb_traverse_MId");
        value_str = talloc_strndup(mem_ctx, (char *)dbuf.dptr, dbuf.dsize);
        value = strtol((const char *)value_str, NULL, 16);
        talloc_free(mem_ctx);
@@ -326,7 +326,7 @@ _PUBLIC_ enum MAPISTATUS emsabp_tdb_insert(TDB_CONTEXT *tdb_ctx,
        OPENCHANGE_RETVAL_IF(!tdb_ctx, MAPI_E_NOT_INITIALIZED, NULL);
        OPENCHANGE_RETVAL_IF(!keyname, MAPI_E_INVALID_PARAMETER, NULL);
 
-       mem_ctx = talloc_init("emsabp_tdb_insert");
+       mem_ctx = talloc_named(NULL, 0, "emsabp_tdb_insert");
        OPENCHANGE_RETVAL_IF(!mem_ctx, MAPI_E_NOT_ENOUGH_RESOURCES, NULL);
 
        /* Step 1. Check if the record already exists */
index ef05120c09902aee6630023b008dc7c66dc2cf40..de0ef173edc8ac00e2a4f5e7fa99bc0d1ebbbda8 100644 (file)
@@ -50,7 +50,7 @@ bool torture_rpc_mapi_bookmark(struct torture_context *torture)
        uint32_t                halfcount;
 
        /* init torture test */
-       mem_ctx = talloc_init("torture_rpc_mapi_bookmark");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_bookmark");
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
 
        /* Open Message Store */
index fad4e85a1bf13b2f4c96b2e3628eb4a02e559b60..874318435956571789373f823e794441d0607c7e 100644 (file)
@@ -290,7 +290,7 @@ enum MAPISTATUS torture_simplemail_fromme(struct loadparm_context *lp_ctx,
        const char              **usernames;
        uint32_t                index = 0;
 
-       mem_ctx = talloc_init("torture_simplemail");
+       mem_ctx = talloc_named(NULL, 0, "torture_simplemail");
 
        session = mapi_object_get_session(obj_parent);
        MAPI_RETVAL_IF(!session, MAPI_E_NOT_INITIALIZED, NULL);
index d9937bd43e8bf1fcd7270102611ac1aeca77e650..c4f6849d73b74009be02a3f9d79c0bdea6cee173 100644 (file)
@@ -47,7 +47,7 @@ bool torture_rpc_mapi_copymail(struct torture_context *torture)
        int                     i;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_copymail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_copymail");
        status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(status)) {
                talloc_free(mem_ctx);
index 2f6014c4c1fdc4c2fe99c67c1c10f952a6111209..87ca66f5d6c5988c3cae851c07add58566c903e2 100644 (file)
@@ -47,7 +47,7 @@ bool torture_mapi_createuser(struct torture_context *torture)
        }
 
        /* init mapi */
-       mem_ctx = talloc_init("torture_mapi_createuser");
+       mem_ctx = talloc_named(NULL, 0, "torture_mapi_createuser");
        retval = torture_load_profile(mem_ctx, torture->lp_ctx, &session);
        if (retval != MAPI_E_SUCCESS) return false;
 
index 1415ec3d85d95e48dedb0b5d644bc7e0bc41084b..d75d69234003d55870937673c5eee510a3de97fc 100644 (file)
@@ -56,7 +56,7 @@ bool torture_rpc_mapi_criteria(struct torture_context *torture)
        uint32_t                        i;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_criteria");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_criteria");
        ntstatus = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(ntstatus)) {
                talloc_free(mem_ctx);
index 691b6a89957ad3b9cce7030e453e8cde557ad11c..4c67f161c0f4e72606c07256b8801da1fd6c3ec9 100644 (file)
@@ -54,7 +54,7 @@ bool torture_rpc_mapi_deletemail(struct torture_context *torture)
 
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_deletemail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_deletemail");
 
        /* init mapi */
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
index 480b61a5a677defe75d075d3f81affaf57219e90..3835f7b980ebb78c397713ac8d06238a363ec3a1 100644 (file)
@@ -44,7 +44,7 @@ bool torture_rpc_mapi_fetchappointment(struct torture_context *torture)
        struct SPropTagArray    *SPropTagArray;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchappointment");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchappointment");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index c7dd73408f4e8e50626ed4ca75416a98d33d24ea..456523eb161e63fd0ab87f9362cbed1b2084190f 100644 (file)
@@ -113,7 +113,7 @@ bool torture_rpc_mapi_fetchattach(struct torture_context *torture)
        uint32_t                sz_attach;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchattach");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchattach");
 
        /* init mapi */
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
index 71e01f3ab2bf0f7aebf709eed2438942dd5249b7..be355480a4515a65740b57e1dbf6aa073189cbc9 100644 (file)
@@ -44,7 +44,7 @@ bool torture_rpc_mapi_fetchcontacts(struct torture_context *torture)
        struct SPropTagArray    *SPropTagArray;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchmail");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index de26aa15bd84b69b4c7665dc5fedea8eb0055172..f7d5bb0dfa2edf12997d11bf20fe15817e68da9f 100644 (file)
@@ -52,7 +52,7 @@ bool torture_rpc_mapi_fetchmail(struct torture_context *torture)
 
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchmail");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index abfee664889e63d77149a0133cb1e5f45e2a020b..10f7c04416e23b58bf215954365b922b7f9e1130 100644 (file)
@@ -44,7 +44,7 @@ bool torture_rpc_mapi_fetchtasks(struct torture_context *torture)
        struct SPropTagArray    *SPropTagArray;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchtasks");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchtasks");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index 2349b1e3de157a245a6eef46ed328377802882fe..b88715836316809a34ec83010a4c02f129f9cf79 100644 (file)
@@ -56,7 +56,7 @@ bool torture_rpc_mapi_namedprops(struct torture_context *torture)
        uint32_t                        cn_propvals;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_namedprops");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_namedprops");
        status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(status)) {
                talloc_free(mem_ctx);
index e757de954fa1c1814c628b2991146f4018d3adcc..59ff1baf4b0bc7a0317abb4c7f11ea4225c9a202 100644 (file)
@@ -63,7 +63,7 @@ bool torture_rpc_mapi_newmail(struct torture_context *torture)
        uint32_t                ulConnection;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_newmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_newmail");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index 99ab3cd83efe18af6220c00b1e2c77f13cc5a2e8..6e99b581d2479900692b75c54bc5f5479ad3069f 100644 (file)
@@ -48,7 +48,7 @@ bool torture_rpc_mapi_permissions(struct torture_context *torture)
        const char              *username = lp_parm_string(torture->lp_ctx, NULL, "mapi", "username");
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_permissions");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_permissions");
        ntstatus = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(ntstatus)) {
                talloc_free(mem_ctx);
index c89443c528e4eb8615f52bccd1961f7726beeb4a..2bead11804ce945926a4fd737de563e6a11c4eaa 100644 (file)
@@ -48,7 +48,7 @@ bool torture_rpc_mapi_recipient(struct torture_context *torture)
        uint32_t                j;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_recipient");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_recipient");
        ntstatus = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(ntstatus)) {
                talloc_free(mem_ctx);
index 084eb5356519598bcd327236a551b3d7e80e720d..6ec1abfc09468ee4154f687de6c753a3c80e3db2 100644 (file)
@@ -138,7 +138,7 @@ bool torture_rpc_mapi_restrictions(struct torture_context *torture)
 
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_restrictions");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_restrictions");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index b35583dd168f1bc99f3ce4fb21428c945ccf8fa5..f2840dde57070ca4a1a8cfaecca87377acdeafa3 100644 (file)
@@ -68,7 +68,7 @@ bool torture_rpc_mapi_sendappointment(struct torture_context *torture)
        if (!start || !end) return false;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_sendappointment");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_sendappointment");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index edfb2db28c37c8d53bf73e7c8f38c1e8767be961..1fb921e29e14ac14bf3704df93d0495a5db6f7b0 100644 (file)
@@ -72,7 +72,7 @@ bool torture_rpc_mapi_sendattach(struct torture_context *torture)
        }
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_sendmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_sendmail");
 
        /* init mapi */
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
index 64342a5855c6550b2dc5f42d1b4388466f397df9..76078ab910b6a72eb4543886ecb9be5147d7ac99 100644 (file)
@@ -50,7 +50,7 @@ bool torture_rpc_mapi_sendcontacts(struct torture_context *torture)
        if (!cardname) return false;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchmail");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index 71b7a918634e4262dda59724317c503552feb440..c5297156039ff7eba4a6af8a6a3b67e57d200969 100644 (file)
@@ -58,7 +58,7 @@ bool torture_rpc_mapi_sendmail(struct torture_context *torture)
 
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_sendmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_sendmail");
 
        /* init mapi */
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
index 44e1130aee128dcece6d64f7aec7659453e9738c..6ca2e22553632fe2fa43c4439e17192d1e1d0d58 100644 (file)
@@ -58,7 +58,7 @@ bool torture_rpc_mapi_sendmail_html(struct torture_context *torture)
        uint32_t                msgflag;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_sendmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_sendmail");
 
        /* get the attachment filename */
        if (!filename) {
index e9f486fc10843f1efea6623d48f488d17df2306d..2c9d3a5fd93fd295e13ffbf26758b91c18f479a4 100644 (file)
@@ -53,7 +53,7 @@ bool torture_rpc_mapi_sendtasks(struct torture_context *torture)
        if (!task) return false;
 
        /* init torture */
-       mem_ctx = talloc_init("torture_rpc_mapi_fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_fetchmail");
        nt_status = torture_rpc_connection(torture, &p, &ndr_table_exchange_emsmdb);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(mem_ctx);
index 83a2179959907e6dfaf46faf56f53b023eeda1a2..ee19113242f92799d7e0221c2abfa1711acf51f8 100644 (file)
@@ -44,7 +44,7 @@ bool torture_rpc_mapi_sorttable(struct torture_context *torture)
        uint32_t                i;
 
        /* init torture test */
-       mem_ctx = talloc_init("torture_rpc_mapi_sorttable");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_mapi_sorttable");
        if ((session = torture_init_mapi(mem_ctx, torture->lp_ctx)) == NULL) return false;
 
        /* Open Message Store*/
index 50934a560019406f3d74dbb23f0bd1aa2de42915..306831989f521bd76ec9c66d915b2ca126b8bce1 100644 (file)
@@ -97,7 +97,7 @@ bool torture_rpc_nspi_profile(struct torture_context *torture)
        const char              *username = NULL;
        uint32_t                instance_key = 0;
 
-       mem_ctx = talloc_init("torture_rpc_nspi_profile");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_nspi_profile");
        
        status = torture_rpc_connection(torture, &p, &ndr_table_exchange_nsp);
 
index aba7abac6860f54be331837e2e5f540c8fbe18fe..66056def6fe7908bf5b4f737f3e5446d9735e53e 100644 (file)
@@ -48,7 +48,7 @@ bool torture_rpc_nspi_resolvenames(struct torture_context *torture)
        char **usernames;
        int j;
 
-       mem_ctx = talloc_init("torture_rpc_nspi_resolvenames");
+       mem_ctx = talloc_named(NULL, 0, "torture_rpc_nspi_resolvenames");
 
        if (!username) {
                DEBUG(0,("Specify the usernames to resolve with exchange:resolvename\n"));
index b1487b98fe1ddf40f0f400b9ec2594ac2e3ef791..3132864cc099f02a55149af992a2e3ac5e4e5bcc 100644 (file)
@@ -374,7 +374,7 @@ int main(int argc, const char *argv[])
                { NULL, 0, 0, NULL, 0, NULL, NULL }
        };
 
-       mem_ctx = talloc_init("openchangemapidump");
+       mem_ctx = talloc_named(NULL, 0, "openchangemapidump");
 
        pc = poptGetContext("openchangemapidump", argc, argv, long_options, 0);
 
index b89ae076371a2822fd923a7db2c325199a401b34..8d150f3eeee6c65986cc9f6f09b243f87ba277d6 100644 (file)
@@ -193,7 +193,7 @@ int main(int argc, const char *argv[])
                { NULL,           0, 0,               NULL, 0,                  NULL,                                   NULL }
        };
 
-       mem_ctx = talloc_init("exchange2ical");
+       mem_ctx = talloc_named(NULL, 0, "exchange2ical");
        exchange2ical_init(mem_ctx, &exchange2ical);
 
        pc = poptGetContext("exchange2ical", argc, argv, long_options, 0);
index 08cd963ebb728d619e33145e7556b5ea9ea1fab6..83d1be0ef544cb099aad405bbd87a946eb9ddb6a 100644 (file)
@@ -582,7 +582,7 @@ int main(int argc, const char *argv[])
                { NULL, 0, POPT_ARG_NONE, NULL, 0, NULL, NULL }
        };
 
-       mem_ctx = talloc_init("exchange2mbox");
+       mem_ctx = talloc_named(NULL, 0, "exchange2mbox");
 
        pc = poptGetContext("exchange2mbox", argc, argv, long_options, 0);
 
index 64b7a6a9ea51e541d4c3302086b7084d96bc3820..e029e61f210585821f9de0e6b0fea3c22ad8b48c 100644 (file)
@@ -108,7 +108,7 @@ static void mapiprofile_create(const char *profdb, const char *profname,
        TALLOC_CTX              *mem_ctx;
        struct mapi_profile     profile;
 
-       mem_ctx = talloc_init("mapiprofile_create");
+       mem_ctx = talloc_named(NULL, 0, "mapiprofile_create");
 
        /* catch CTRL-C */
        g_profname = profname;
@@ -517,7 +517,7 @@ int main(int argc, const char *argv[])
                { NULL, 0, POPT_ARG_NONE, NULL, 0, NULL, NULL }
        };
 
-       mem_ctx = talloc_init("mapiprofile");
+       mem_ctx = talloc_named(NULL, 0, "mapiprofile");
 
        pc = poptGetContext("mapiprofile", argc, argv, long_options, 0);
 
index 2218dc384864021230be1100dfdc580c89cc39b3..378476f2d4f24aa124451c02f51c434726828591 100644 (file)
@@ -229,7 +229,7 @@ int main(int argc, const char *argv[])
                { NULL, 0, 0, NULL, 0, NULL, NULL }
        };
 
-       mem_ctx = talloc_init("mapitest");
+       mem_ctx = talloc_named(NULL, 0, "mapitest");
        mapitest_init(mem_ctx, &mt);
        mapitest_register_modules(&mt);
 
index 2816847d2514b23486bea7428adc4603aaead16f..89a3171790f92c60c509a23ef77d932c173ff79c 100644 (file)
@@ -82,7 +82,7 @@ _PUBLIC_ bool mapitest_errorchecks_simplemapi_c(struct mapitest *mt)
                mapitest_print(mt, "* %-35s: [SUCCESS]\n", "Step 1 - MAPI_E_NOT_INITIALIZED");
        }
 
-       mem_ctx = talloc_init("MAPITEST_ERRORCHECKS_SIMPLEMAPI");
+       mem_ctx = talloc_named(NULL, 0, "MAPITEST_ERRORCHECKS_SIMPLEMAPI");
        make_global_ctx_valid(mem_ctx);
 
        status = GetDefaultPublicFolder(obj_store, folder, id);
index 4eea98d5d61154d4126a39de972d7dda55ddd4b1..8e6950c5267d7516dda5141a6be8a3541281ecbe 100644 (file)
@@ -336,7 +336,7 @@ static bool store_attachment(mapi_object_t obj_attach, const char *filename, uin
 
        if (!filename || !size) return false;
 
-       mem_ctx = talloc_init("store_attachment");
+       mem_ctx = talloc_named(NULL, 0, "store_attachment");
        mapi_object_init(&obj_stream);
 
        if ((fd = open(oclient->store_folder, O_DIRECTORY)) == -1) {
@@ -396,7 +396,7 @@ static enum MAPISTATUS openchangeclient_fetchmail(mapi_object_t *obj_store,
        const char                      *attach_filename;
        const uint32_t                  *attach_size;
        
-       mem_ctx = talloc_init("openchangeclient_fetchmail");
+       mem_ctx = talloc_named(NULL, 0, "openchangeclient_fetchmail");
 
        mapi_object_init(&obj_tis);
        mapi_object_init(&obj_inbox);
@@ -2084,7 +2084,7 @@ static enum MAPISTATUS openchangeclient_findmail(mapi_object_t *obj_store,
        uint32_t                        i;
        char                            *id;
 
-       mem_ctx = talloc_init("openchangeclient_findmail");
+       mem_ctx = talloc_named(NULL, 0, "openchangeclient_findmail");
 
        /* Get Inbox folder */
        retval = GetDefaultFolder(obj_store, &fid, olFolderInbox);
@@ -2846,7 +2846,7 @@ int main(int argc, const char *argv[])
                {NULL, 0, 0, NULL, 0, NULL, NULL}
        };
 
-       mem_ctx = talloc_init("openchangeclient");
+       mem_ctx = talloc_named(NULL, 0, "openchangeclient");
 
        init_oclient(&oclient);
 
index d78389db971bdf95e60b89a0ec75e71ef1dad89b..47c7467de9df84fd031f78e4544f62ce053d089b 100644 (file)
@@ -298,7 +298,7 @@ int main(int argc, const char *argv[])
                { NULL, 0, POPT_ARG_NONE, NULL, 0, NULL, NULL }
        };
 
-       mem_ctx = talloc_init("openchangepfadmin");
+       mem_ctx = talloc_named(NULL, 0, "openchangepfadmin");
 
        pc = poptGetContext("openchangepfadmin", argc, argv, long_options, 0);
 
index c1d67bd15e9acfd0b1bbc867de5531aed4ae0b30..3e4273b990977b8457d54458958ba6f53221bbf1 100644 (file)
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
                usage();
        }
 
-       mem_ctx = talloc_init("SchemaIDGUID");
+       mem_ctx = talloc_named(NULL, 0, "SchemaIDGUID");
 
        blob = data_blob_talloc(mem_ctx, argv[1], strlen(argv[1])+1);
        blob.length = ldb_base64_decode((char *)blob.data);