summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-09 11:36:45 +0200
committerVolker Lendecke <vl@samba.org>2009-04-11 11:06:21 +0200
commitea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2 (patch)
tree2d5abe14001c97e29dd3806d9f1f96d8c89c5276
parent2ff80f0d761680f3732a46c2672bcef041a7c367 (diff)
downloadsamba-ea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2.tar.gz
samba-ea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2.tar.bz2
samba-ea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2.zip
Use talloc_tos() for a temp convert_string_allocate()
-rw-r--r--source3/smbd/notify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index fdab2ca848..dc1599b462 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -81,7 +81,7 @@ static bool notify_marshall_changes(int num_changes,
c = &changes[i];
- if (!convert_string_allocate(NULL, CH_UNIX, CH_UTF16LE,
+ if (!convert_string_allocate(talloc_tos(), CH_UNIX, CH_UTF16LE,
c->name, strlen(c->name)+1, &uni_name.buffer,
&namelen, True) || (uni_name.buffer == NULL)) {
goto fail;
@@ -109,7 +109,7 @@ static bool notify_marshall_changes(int num_changes,
*/
prs_set_offset(ps, prs_offset(ps)-2);
- SAFE_FREE(uni_name.buffer);
+ TALLOC_FREE(uni_name.buffer);
if (prs_offset(ps) > max_offset) {
/* Too much data for client. */
@@ -123,7 +123,7 @@ static bool notify_marshall_changes(int num_changes,
return True;
fail:
- SAFE_FREE(uni_name.buffer);
+ TALLOC_FREE(uni_name.buffer);
return False;
}