aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/songvec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/songvec.c b/src/songvec.c
index d416573ce..842e7afcd 100644
--- a/src/songvec.c
+++ b/src/songvec.c
@@ -61,8 +61,10 @@ void songvec_add(struct songvec *sv, Song *add)
void songvec_free(struct songvec *sv)
{
- free(sv->base);
- sv->base = NULL;
+ if (sv->base) {
+ free(sv->base);
+ sv->base = NULL;
+ }
sv->nr = 0;
}