summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 086400e)
raw | patch | inline | side by side (parent: 086400e)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 6 Sep 2009 15:06:56 +0000 (17:06 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 6 Sep 2009 15:08:19 +0000 (17:08 +0200) |
Only happened in an out-of-memory situation. Still, not nice ;)
src/utils_cache.c | patch | blob | history |
diff --git a/src/utils_cache.c b/src/utils_cache.c
index 9e7bc067dc8198605de7a4fd8fdac5798b9dbe41..648c54de5b13b498df24b9ac3909eb2275544844 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
if (ce->meta == NULL)
ce->meta = meta_data_create ();
+ if (ce->meta == NULL)
+ pthread_mutex_unlock (&cache_lock);
+
return (ce->meta);
} /* }}} meta_data_t *uc_get_meta */