Prevented a memory leak that in most cases was closed by a race condition
This commit is contained in:
parent
d09ecac4a8
commit
83eac67cf5
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2013.11.15.102314"
|
#define Cdrskin_timestamP "2013.11.16.170431"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "libdax_msgs.h"
|
#include "libdax_msgs.h"
|
||||||
extern struct libdax_msgs *libdax_messenger;
|
extern struct libdax_msgs *libdax_messenger;
|
||||||
@ -93,6 +94,7 @@ int burn_write_opts_clone(struct burn_write_opts *from,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
memcpy(*to, from, sizeof(struct burn_write_opts));
|
memcpy(*to, from, sizeof(struct burn_write_opts));
|
||||||
|
(*to)->refcount= 1;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user