aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc.c
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-08-24 15:57:03 +0200
committerSimon Busch <morphis@gravedo.de>2012-08-24 15:57:03 +0200
commitd851f2bceb5813ba128ab31384bbec7f8cc72f07 (patch)
tree132f94e665e3450f7d7cfe11922ee8b7666c071d /samsung-ipc/ipc.c
parent118643a96dbaa46dbb44dc2d3d5d33a520fe9033 (diff)
downloadexternal_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.zip
external_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.tar.gz
external_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.tar.bz2
Add another method to free space used by a response message
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r--samsung-ipc/ipc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index ee27c4d..91dbf15 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -464,4 +464,12 @@ int ipc_client_recv(struct ipc_client *client, struct ipc_message_info *response
return client->ops->recv(client, response);
}
+void ipc_client_response_free(struct ipc_client *client, struct ipc_message_info *response)
+{
+ if (response->data != NULL) {
+ free(response->data);
+ response->data = NULL;
+ }
+}
+
// vim:ts=4:sw=4:expandtab