Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9d4d8108
Commit
9d4d8108
authored
Jul 02, 2014
by
antirez
Browse files
Free labels in freeSparklineSequence().
parent
1766d916
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sparkline.c
View file @
9d4d8108
...
@@ -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