diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-15 14:43:12 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:14 +0100 |
commit | 33fa75c6159dea22a4960c73cdd0ad3969ad95d4 (patch) | |
tree | bef3c334a04c0d4f10df8eb9798219c9cef36a22 /librpc/rpc | |
parent | 09c5bd99b14b1a613bb74c763c64dfddfba6559a (diff) | |
download | samba-33fa75c6159dea22a4960c73cdd0ad3969ad95d4.tar.gz |
librpc/rpc: remove the options array in dcerpc_parse_binding() if not needed
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/rpc')
-rw-r--r-- | librpc/rpc/binding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 3e3bdb56b73..9e012d55078 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -417,8 +417,9 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc } } - if (b->options[0] == NULL) - b->options = NULL; + if (b->options[0] == NULL) { + TALLOC_FREE(b->options); + } *b_out = b; return NT_STATUS_OK; |