about summary refs log tree commit homepage
path: root/svc_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'svc_dev.c')
-rw-r--r--svc_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc_dev.c b/svc_dev.c
index f618a9b..ea41c11 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;
 }