free order
authorJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 25 Sep 2020 07:46:35 +0000 (09:46 +0200)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Fri, 25 Sep 2020 07:46:35 +0000 (09:46 +0200)
src/siri/db/tags.c

index 0faa02e8a4743072b0d26035781b8f776e607a56..492629f22dabc95bbc743f2b94bea8fdb686a1b3 100644 (file)
@@ -428,18 +428,15 @@ static int TAGS_load(siridb_t * siridb)
 
 static void TAGS_free(siridb_tags_t * tags)
 {
-    free(tags->path);
-
     uv_mutex_lock(&tags->mutex);
 
     if (tags->tags != NULL)
     {
         ct_free(tags->tags, (ct_free_cb) siridb__tag_decref);
     }
-
     uv_mutex_unlock(&tags->mutex);
-
     uv_mutex_destroy(&tags->mutex);
 
+    free(tags->path);
     free(tags);
 }