Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
celllframe-node
Commits
fd66014b
Commit
fd66014b
authored
3 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[!] Massive memory leaks fixes
parent
4984075d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!226
Release 4.4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
scripts/.keep
+0
-0
0 additions, 0 deletions
scripts/.keep
sources/main_node_cli.c
+3
-1
3 additions, 1 deletion
sources/main_node_cli.c
with
5 additions
and
3 deletions
CMakeLists.txt
+
1
−
1
View file @
fd66014b
...
...
@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11)
SET
(
CPACK_PACKAGE_NAME
"
${
PROJECT_NAME
}
"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR 4
)
SET
(
CPACK_PACKAGE_VERSION_MINOR 4
)
SET
(
CPACK_PACKAGE_VERSION_PATCH 1
4
)
SET
(
CPACK_PACKAGE_VERSION_PATCH 1
5
)
# init CellFrame SDK
add_definitions
(
"-DDAP_VERSION=
\"
${
CPACK_PACKAGE_VERSION_MAJOR
}
-
${
CPACK_PACKAGE_VERSION_MINOR
}
.
${
CPACK_PACKAGE_VERSION_PATCH
}
\"
"
)
...
...
This diff is collapsed.
Click to expand it.
cellframe-sdk
@
9f4160ac
Compare
7b50180e
...
9f4160ac
Subproject commit
7b50180e79d04452b756ac240a1bac1eafb2d9e
2
Subproject commit
9f4160ac18c60128ca4c1fd95d234fb5729c9dd
2
This diff is collapsed.
Click to expand it.
scripts/.keep
deleted
100644 → 0
+
0
−
0
View file @
4984075d
This diff is collapsed.
Click to expand it.
sources/main_node_cli.c
+
3
−
1
View file @
fd66014b
...
...
@@ -59,7 +59,7 @@ static char** split_word(char *line, int *argc)
*
argc
=
0
;
return
NULL
;
}
char
**
argv
=
calloc
(
sizeof
(
char
*
)
,
strlen
(
line
));
char
**
argv
=
DAP_NEW_Z_SIZE
(
char
*
,
sizeof
(
char
*
)
*
strlen
(
line
));
int
n
=
0
;
char
*
s
,
*
start
=
line
;
size_t
len
=
strlen
(
line
);
...
...
@@ -131,9 +131,11 @@ int execute_line(char *line)
cmd
.
cmd_param
=
(
char
**
)
(
argv
+
1
);
// Send command
int
res
=
dap_app_cli_post_command
(
cparam
,
&
cmd
);
DAP_DELETE
(
argv
);
return
res
;
}
fprintf
(
stderr
,
"No command
\n
"
);
DAP_DELETE
(
argv
);
return
-
1
;
//((*(command->func))(argc, (const char **) argv, NULL));
}
...
...
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