dryman / opic

Fast serialization framework for C
GNU Lesser General Public License v3.0
225 stars 21 forks source link

OPHeapClose Fails #79

Open sayangoswami opened 6 years ago

sayangoswami commented 6 years ago

Hi,

I tried running the example provided on the repo README and it failed with "msync on 0x1000000000 failed: Cannot allocate memory".

In line 143 of file opic/malloc/op_malloc.c the msync returns 0 on success does it not?

Shouldn't it check for a non-zero value before throwing an error?

Thanks.