Hopefully fixed memory problem which causes sigabrt on free
This commit is contained in:
parent
cb42e2fcd9
commit
fdfc4ebf36
@ -30,7 +30,7 @@ int libdax_audioxtr_new(struct libdax_audioxtr **xtr, char *path, int flag)
|
||||
int ret;
|
||||
struct libdax_audioxtr *o;
|
||||
|
||||
o= *xtr= (struct libdax_audioxtr *)malloc(sizeof(struct libdax_audioxtr *));
|
||||
o= *xtr= (struct libdax_audioxtr *) malloc(sizeof(struct libdax_audioxtr));
|
||||
if(o==NULL)
|
||||
return(-1);
|
||||
strncpy(o->path,path,LIBDAX_AUDIOXTR_STRLEN-1);
|
||||
|
Loading…
Reference in New Issue
Block a user