IpcModule: Fix Memory Leak therefore introducing destroyMessage functionality ivi-layer-management_version_0_9_7_rc2
authorMichael Schuldt <michael.schuldt@bmw.de>
Tue, 4 Sep 2012 12:18:10 +0000 (14:18 +0200)
committerMichael Schuldt <michael.schuldt@bmw.de>
Tue, 4 Sep 2012 12:18:10 +0000 (14:18 +0200)
commit04540f26e81bb2f1f6181913b3783eedcb43fbd6
treecdc6f98f08a0538ac5a38dfa24a8fef6b7515919
parent86df86252f33ba27e1e521a7f35d84872fc0e9f3
IpcModule: Fix Memory Leak therefore introducing destroyMessage functionality

- This patch will fix a huge memory leak on both client
  and generic communicator
- This memory leak will not occur on all ipc module only if dbus is used.
- To guarantee that the ipc message is successfull destroyed
  destroyMessage functionality is added.
LayerManagerClient/ilmClient/src/generic_ilm_client.c
LayerManagerPlugins/Communicators/GenericCommunicator/src/GenericCommunicator.cpp
LayerManagerPlugins/IpcModules/DbusIpcModule/include/common.h
LayerManagerPlugins/IpcModules/DbusIpcModule/src/message.c
LayerManagerPlugins/IpcModules/IpcModuleLoader/include/IpcModule.h
LayerManagerPlugins/IpcModules/IpcModuleLoader/include/IpcModuleLoader.h
LayerManagerPlugins/IpcModules/IpcModuleLoader/src/IpcModuleLoader.c
LayerManagerPlugins/IpcModules/TcpIpcModule/src/message.c