From 83eac67cf5047ecb0595604149f15a1d58db9d6c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 16 Nov 2013 17:05:40 +0000 Subject: [PATCH] Prevented a memory leak that in most cases was closed by a race condition --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/options.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 6240cc8..9d301e6 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2013.11.15.102314" +#define Cdrskin_timestamP "2013.11.16.170431" diff --git a/libburn/options.c b/libburn/options.c index 8ca8ce8..c27aa97 100644 --- a/libburn/options.c +++ b/libburn/options.c @@ -20,6 +20,7 @@ #include #include +#include #include "libdax_msgs.h" extern struct libdax_msgs *libdax_messenger; @@ -93,6 +94,7 @@ int burn_write_opts_clone(struct burn_write_opts *from, return -1; } memcpy(*to, from, sizeof(struct burn_write_opts)); + (*to)->refcount= 1; return 1; }