diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-08-06 21:26:31 +0300 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-08-06 22:51:37 +0300 |
| commit | 8bea70c68e3f7ac23d4ff10b758af718ffb94263 (patch) | |
| tree | fa0acc0c76dce541911cd9095c5c78aec31e9f71 /src/protocol/reqrep0 | |
| parent | b717dfefa5b1e8fa20ded02f3a79e2c8d2f24f41 (diff) | |
| download | nng-8bea70c68e3f7ac23d4ff10b758af718ffb94263.tar.gz nng-8bea70c68e3f7ac23d4ff10b758af718ffb94263.tar.bz2 nng-8bea70c68e3f7ac23d4ff10b758af718ffb94263.zip | |
fixes #611 Memory Leaks under Windows
fixes #622 incorrect assumptions about malloc(0)
Windows actually allocates an object of size zero when calling
malloc on size zero. This is unusual behavior, and we just
add logic to work more like malloc on POSIX systems.
Other systems can return non-NULL objects to fixed pages here.
We think the best option here is to uniformly return NULL from
our APIs in these circumstances, and to include testing to validate
that.
Diffstat (limited to 'src/protocol/reqrep0')
0 files changed, 0 insertions, 0 deletions
