summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2023-03-29 11:49:43 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-03-31 01:48:30 +0000
commitc6981f60549c497d401c4c4173dc362f083791d7 (patch)
tree38dea45f14f5efda67c9464940442ad4b07e5b80 /pidl
parent0ef71cf1524e855b0ae17051b054ef27d1c95717 (diff)
downloadsamba-c6981f60549c497d401c4c4173dc362f083791d7.tar.gz
librpc/ndr: Make ndr_push_compression_state_free() a talloc destructor
This means that the generic_mszip_free() will still be called on failure. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index 230b42dbbbf..b21a6e6513e 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -527,7 +527,7 @@ sub ParseCompressionPushEnd($$$$$)
my $alg = compression_alg($e, $l, $env);
$self->pidl("NDR_CHECK(ndr_push_compression_end($ndr, $comndr, $alg));");
- $self->pidl("NDR_CHECK(ndr_push_compression_state_free($ndr->cstate));");
+ $self->pidl("TALLOC_FREE($ndr->cstate);");
$self->deindent;
$self->pidl("}");
}