Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
062564c2
Commit
062564c2
authored
Jul 02, 2014
by
antirez
Browse files
Free labels in freeSparklineSequence().
parent
d20d89e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sparkline.c
View file @
062564c2
...
@@ -78,6 +78,10 @@ void sparklineSequenceAddSample(struct sequence *seq, double value, char *label)
...
@@ -78,6 +78,10 @@ void sparklineSequenceAddSample(struct sequence *seq, double value, char *label)
/* Free a sequence. */
/* Free a sequence. */
void
freeSparklineSequence
(
struct
sequence
*
seq
)
{
void
freeSparklineSequence
(
struct
sequence
*
seq
)
{
int
j
;
for
(
j
=
0
;
j
<
seq
->
length
;
j
++
)
zfree
(
seq
->
samples
[
j
].
label
);
zfree
(
seq
->
samples
);
zfree
(
seq
->
samples
);
zfree
(
seq
);
zfree
(
seq
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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