mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 23:57:42 +00:00
misc fixes
This commit is contained in:
parent
c708e68bc6
commit
ec6e42ba3d
3 changed files with 11 additions and 1 deletions
|
@ -66,6 +66,10 @@ int parse_weights(WeightArray **list, const unsigned char *data, int len)
|
|||
*list = realloc(*list, capacity*sizeof(WeightArray));
|
||||
}
|
||||
(*list)[nb_arrays++] = array;
|
||||
} else {
|
||||
free(*list);
|
||||
*list = NULL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
(*list)[nb_arrays].name=NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue