1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-07 00:58:40 +03:00

r5039: fixed eparser not to generate talloc_p()

(This used to be commit dd67a5d833d7e44ff0ec1ba9f5c55c2b1e121b9a)
This commit is contained in:
Andrew Tridgell 2005-01-27 07:13:31 +00:00 committed by Gerald (Jerry) Carter
parent db75b1c8f7
commit 5aedcc2066

@ -60,7 +60,7 @@ sub ParseFunctionPull($)
pidl "int $fn->{NAME}_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)\n{\n";
pidl "\tstruct pidl_pull *ndr = pidl_pull_init(tvb, offset, pinfo, drep);\n";
pidl "\tstruct $fn->{NAME} *r = talloc_p(NULL, struct $fn->{NAME});\n";
pidl "\tstruct $fn->{NAME} *r = talloc(NULL, struct $fn->{NAME});\n";
pidl "\tpidl_tree ptree;\n\n";
pidl "\tptree.proto_tree = tree;\n";
@ -75,7 +75,7 @@ sub ParseFunctionPull($)
pidl "int $fn->{NAME}_resp(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)\n{\n";
pidl "\tstruct pidl_pull *ndr = pidl_pull_init(tvb, offset, pinfo, drep);\n";
pidl "\tstruct $fn->{NAME} *r = talloc_p(NULL, struct $fn->{NAME});\n";
pidl "\tstruct $fn->{NAME} *r = talloc(NULL, struct $fn->{NAME});\n";
pidl "\tpidl_tree ptree;\n\n";
pidl "\tptree.proto_tree = tree;\n";