mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-05-01 22:18:10 +08:00
linear_models: try to fix a SIGABRT
This commit is contained in:
parent
b94373553d
commit
550a82c83f
@ -63,7 +63,12 @@ void FreeCModel(struct model *m) {
|
||||
|
||||
/* free's a parameter via libsvm */
|
||||
void FreeCParameter(struct parameter *p) {
|
||||
destroy_param(p);
|
||||
if (p->weight_label != nullptr) {
|
||||
free(p->weight_label);
|
||||
}
|
||||
if (p->weight != nullptr) {
|
||||
free(p->weight);
|
||||
}
|
||||
delete p;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user