diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-05-23 10:21:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-05-30 22:12:31 +0000 |
commit | 446a21c9ac664f7456e2e4e739979baab8ba13c1 (patch) | |
tree | c14bf9314fdb1e26ed5e306df81cf36c5c9dde03 | |
parent | c53cecda7106e4c7eb14d5c26e28bda82743771d (diff) | |
download | cmogstored-446a21c9ac664f7456e2e4e739979baab8ba13c1.tar.gz |
We do not need to be holding devstats_lock when releasing a local buffer which will never be used by another thread.
-rw-r--r-- | svc_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |