diff options
author | Simon Busch <morphis@gravedo.de> | 2012-08-24 15:57:03 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-08-24 15:57:03 +0200 |
commit | d851f2bceb5813ba128ab31384bbec7f8cc72f07 (patch) | |
tree | 132f94e665e3450f7d7cfe11922ee8b7666c071d /samsung-ipc/ipc.c | |
parent | 118643a96dbaa46dbb44dc2d3d5d33a520fe9033 (diff) | |
download | hardware_replicant_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.tar.gz hardware_replicant_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.tar.bz2 hardware_replicant_libsamsung-ipc-d851f2bceb5813ba128ab31384bbec7f8cc72f07.zip |
Add another method to free space used by a response message
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r-- | samsung-ipc/ipc.c | 8 |
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 |