about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--svc_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc_dev.c b/svc_dev.c
index bb83128..393feeb 100644
--- a/svc_dev.c
+++ b/svc_dev.c
@@ -246,10 +246,10 @@ bool mog_svc_devstats_broadcast(void *ent, void *ignored)
                 }
         }
 out:
-        free(buf);
-
         CHECK(int, 0, pthread_mutex_unlock(&svc->devstats_lock));
 
+        free(buf);
+
         return true;
 }