mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
don't free lock name of a named cache
This commit is contained in:
+1
-1
@@ -129,9 +129,9 @@ void uwsgi_cache_init(struct uwsgi_cache *uc) {
|
||||
uc->data = ((char *)uc->items) + ((sizeof(struct uwsgi_cache_item)+uc->keysize) * uc->max_items);
|
||||
|
||||
if (uc->name) {
|
||||
// can't free that until shutdown
|
||||
char *lock_name = uwsgi_concat2("cache_", uc->name);
|
||||
uc->lock = uwsgi_rwlock_init(lock_name);
|
||||
free(lock_name);
|
||||
}
|
||||
else {
|
||||
uc->lock = uwsgi_rwlock_init("cache");
|
||||
|
||||
Reference in New Issue
Block a user