majianjia / nnom

A higher-level Neural Network library for microcontrollers.
Apache License 2.0
820 stars 235 forks source link

Incorrect memory allocation #140

Open jerryctt opened 2 years ago

jerryctt commented 2 years ago

There is memory allocation issue under examples/keyword_spotting/mfcc.c line 208: float bin = mfcc_malloc(sizeof(float) mfcc->num_fbank+2); should be float bin = mfcc_malloc(sizeof(float) (mfcc->num_fbank+2));

majianjia commented 2 years ago

Hi @jerryctt Yes indeed, thanks. Would you like to make a PR or I can fix it directly?

jerryctt commented 2 years ago

You can fix it directly. :)

jonnor commented 3 months ago

This issue has been fixed in a commit and can be closed. CC @majianjia