Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
cad57109
Commit
cad57109
authored
2 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-6189' into 'master'
Hotfix 6189 See merge request
!674
parents
854ff4bd
99115e8b
No related branches found
No related tags found
1 merge request
!674
Hotfix 6189
Pipeline
#14901
passed with stage
in 2 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/net/srv/dap_chain_net_srv_order.c
+3
-2
3 additions, 2 deletions
modules/net/srv/dap_chain_net_srv_order.c
with
3 additions
and
2 deletions
modules/net/srv/dap_chain_net_srv_order.c
+
3
−
2
View file @
cad57109
...
...
@@ -437,7 +437,7 @@ int dap_chain_net_srv_order_find_all_by(dap_chain_net_t * a_net,const dap_chain_
log_it
(
L_DEBUG
,
"Loaded %zu orders"
,
l_orders_count
);
dap_chain_net_srv_order_t
*
l_order
=
NULL
;
*
a_output_orders
=
NULL
;
*
a
_output_orders_count
=
0
;
size_t
l
_output_orders_count
=
0
;
size_t
l_orders_size
=
0
;
for
(
size_t
i
=
0
;
i
<
l_orders_count
;
i
++
)
{
DAP_DEL_Z
(
l_order
);
...
...
@@ -475,8 +475,9 @@ int dap_chain_net_srv_order_find_all_by(dap_chain_net_t * a_net,const dap_chain_
*
a_output_orders
=
DAP_REALLOC
(
*
a_output_orders
,
l_orders_size
+
l_order_mem_size
);
memcpy
((
byte_t
*
)
*
a_output_orders
+
l_orders_size
,
l_order
,
l_order_mem_size
);
l_orders_size
+=
l_order_mem_size
;
a
_output_orders_count
++
;
l
_output_orders_count
++
;
}
*
a_output_orders_count
=
l_output_orders_count
;
DAP_DEL_Z
(
l_order
);
dap_chain_global_db_objs_delete
(
l_orders
,
l_orders_count
);
DAP_DELETE
(
l_gdb_group_str
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment