sctp: Fix crash on free() when using the MSVC binaries
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 20 Aug 2019 08:51:17 +0000 (14:21 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 20 Aug 2019 18:21:26 +0000 (19:21 +0100)
commite4af68aa58b4a67454efe18c0e36a126dfe982da
tree7988339d44d5815742fb3ff3c570f53f5ff457b1
parentb1971de590539e41abf8b8ca0cdad0dceeecf452
sctp: Fix crash on free() when using the MSVC binaries

On Windows, if libusrsctp and gstreamer are built with different
C runtimes (CRT), we cannot free memory allocated inside libusrsctp
with the `free()` function from gstreamer's CRT.

`usrsctp_freedumpbuffer()` simply calls `free()`, but because of the
way DLLs work on Windows, it will always call the free function from
the correct CRT.
ext/sctp/sctpassociation.c