summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-03 22:09:17 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-03 22:09:17 +0200
commitbdddc0cc95840e891156e45750ef15b977b24e62 (patch)
tree4b573b79dcf0423f3a4984baeec6a28e38be0c5b /src/cache.c
parent16b6a6cecb02fc01ff28f941281e635881ba5980 (diff)
don't free sound_path on success
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 51a5479..3579323 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -529,7 +529,7 @@ finish:
if (remove_entry)
db_remove(key, klen);
- if (sound_path)
+ if (sound_path && ret < 0)
ca_free(*sound_path);
ca_free(key);