-rw-r--r-- | cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -76,3 +76,3 @@ int cache_lock(struct cacheitem *item) | |||
76 | int i = 0; | 76 | int i = 0; |
77 | char *lockfile = fmt("%s.lock", item->name); | 77 | char *lockfile = xstrdup(fmt("%s.lock", item->name)); |
78 | 78 | ||
@@ -92,2 +92,3 @@ int cache_lock(struct cacheitem *item) | |||
92 | 92 | ||
93 | free(lockfile); | ||
93 | return (item->fd > 0); | 94 | return (item->fd > 0); |