summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cache.c b/cache.c
index b947a34..39e63a5 100644
--- a/cache.c
+++ b/cache.c
@@ -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);