git.samba.org
/
kseeger
/
samba-autobuild-v4-14-test
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: lib: Fix talloc heirarcy error in parent_smb_fname().
[kseeger/samba-autobuild-v4-14-test/.git]
/
source3
/
lib
/
filename_util.c
diff --git
a/source3/lib/filename_util.c
b/source3/lib/filename_util.c
index f535ea1f088d780e468dcdf77ab0e29946160a8c..1d4206c33003faff84423aec59ea6146262ce58c 100644
(file)
--- a/
source3/lib/filename_util.c
+++ b/
source3/lib/filename_util.c
@@
-320,7
+320,7
@@
bool parent_smb_fname(TALLOC_CTX *mem_ctx,
}
TALLOC_FREE(name->base_name);
- name->base_name = talloc_strdup(
mem_ctx
, p);
+ name->base_name = talloc_strdup(
name
, p);
if (name == NULL) {
TALLOC_FREE(frame);
return false;