aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/songvec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/songvec.c b/src/songvec.c
index f879830dc..3d0eaa02f 100644
--- a/src/songvec.c
+++ b/src/songvec.c
@@ -60,7 +60,9 @@ 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;
}