Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
24af1224
Commit
24af1224
authored
May 10, 2016
by
Cédric Roux
Browse files
bugfix: calloc may fail
parent
724b6622
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/xy_plot.c
View file @
24af1224
...
...
@@ -259,7 +259,9 @@ void xy_plot_set_points(gui *_gui, widget *_this, int plot,
free
(
this
->
plots
[
plot
].
x
);
free
(
this
->
plots
[
plot
].
y
);
this
->
plots
[
plot
].
x
=
calloc
(
npoints
,
sizeof
(
float
));
if
(
this
->
plots
[
plot
].
x
==
NULL
)
abort
();
this
->
plots
[
plot
].
y
=
calloc
(
npoints
,
sizeof
(
float
));
if
(
this
->
plots
[
plot
].
y
==
NULL
)
abort
();
this
->
plots
[
plot
].
npoints
=
npoints
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment