Free labels in freeSparklineSequence().

This commit is contained in:
antirez 2014-07-02 12:49:14 +02:00
parent 1766d91697
commit 9d4d810861

View File

@ -78,6 +78,10 @@ void sparklineSequenceAddSample(struct sequence *seq, double value, char *label)
/* Free a sequence. */
void freeSparklineSequence(struct sequence *seq) {
int j;
for (j = 0; j < seq->length; j++)
zfree(seq->samples[j].label);
zfree(seq->samples);
zfree(seq);
}