diff options
author | Aharon Hillel <a.hillel@samsung.com> | 2013-01-20 09:07:56 +0000 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@yahoo.com> | 2013-01-20 09:07:56 +0000 |
commit | 55d9dca1ff96864fb2d3ca9365b14f89fdb19af2 (patch) | |
tree | 5a0f77ae8f4ec3ff4c4f69a80e9fd1aed871d7bd | |
parent | e83542e39d0cae1cc2770bed91a0d8f153576f31 (diff) | |
download | eet-55d9dca1ff96864fb2d3ca9365b14f89fdb19af2.tar.gz |
eet: Backport 83010
eet_connection.c fixed memory allocation Changed the usage of alloca() to malloc() to support big-mem-alloc This was required to support Clouseau
Signed-off-by: Aharon Hillel <a.hillel@samsung.com>
SVN revision: 83011
-rw-r--r-- | src/lib/eet_connection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eet_connection.c b/src/lib/eet_connection.c index c044e3d..72e6e6c 100644 --- a/src/lib/eet_connection.c +++ b/src/lib/eet_connection.c @@ -159,13 +159,15 @@ _eet_connection_raw_send(Eet_Connection *conn, /* Message should always be under MAX_MSG_SIZE */ if (data_size > MAX_MSG_SIZE) return EINA_FALSE; - message = alloca(data_size + (sizeof(int) * 2)); + message = malloc(data_size + (sizeof(int) * 2)); message[0] = htonl(MAGIC_EET_DATA_PACKET); message[1] = htonl(data_size); memcpy(message + 2, data, data_size); conn->eet_write_cb(message, data_size + (sizeof(int) * 2), conn->user_data); + + free(message); return EINA_TRUE; } |