diff options
author | Eric Wong <normalperson@yhbt.net> | 2014-05-23 10:21:32 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2014-05-23 10:23:50 +0000 |
commit | 565f1d67f7ce95f1a34bbcd9c3d90c1bb058bf9c (patch) | |
tree | 7a25036b09d79c00d4066774c28a2e89532e160d | |
parent | a59d6e528febec2d7bce6963adae437a79a20410 (diff) | |
download | cmogstored-565f1d67f7ce95f1a34bbcd9c3d90c1bb058bf9c.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; } |