Remove unused malloc2d/free2d

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove some more unnecessary platform code

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Remove more non-Linux isms

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Don't call _rtw_mfree() directly from outside osdep_service.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Replace malloc/free wrappers with proper kmalloc/kfree

In addition fix multiple memory leaks

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use kmalloc/kfree instead of wrapper macros

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Replace rtw_mfree with kfree

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use kzalloc instead of rtw_kzmalloc

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Use kmalloc/kfree and check return value of kmalloc()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
run through dos2unix

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>