diff options
author | Volker Lendecke <vl@samba.org> | 2022-02-22 15:42:41 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-03-01 20:09:28 +0000 |
commit | d255044e2ab971ea39f0eed25e5c53a0c56d3a3a (patch) | |
tree | fe327c20e12029b4daf4bbc05291cdbe8597e05a /source3 | |
parent | 9eb27f296ae2b797803fffbb7f4cb34d8eb06f34 (diff) | |
download | samba-d255044e2ab971ea39f0eed25e5c53a0c56d3a3a.tar.gz |
lib: Use cp_smb_filename_nostream() in adouble_path()
No need to TALLOC_FREE(smb_fname->stream_name) later
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/adouble.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/lib/adouble.c b/source3/lib/adouble.c index dda7a5ec05f..ef48d1aa73a 100644 --- a/source3/lib/adouble.c +++ b/source3/lib/adouble.c @@ -2757,17 +2757,14 @@ int adouble_path(TALLOC_CTX *ctx, { char *parent; const char *base; - struct smb_filename *smb_fname = cp_smb_filename(ctx, - smb_fname_in); + struct smb_filename *smb_fname = NULL; + smb_fname = cp_smb_filename_nostream(ctx, smb_fname_in); if (smb_fname == NULL) { return -1; } - /* We need streamname to be NULL */ - TALLOC_FREE(smb_fname->stream_name); - - /* And we're replacing base_name. */ + /* We're replacing base_name. */ TALLOC_FREE(smb_fname->base_name); SET_STAT_INVALID(smb_fname->st); |