mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Free labels in freeSparklineSequence().
This commit is contained in:
parent
1766d91697
commit
9d4d810861
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user