summaryrefslogtreecommitdiff
path: root/examples/mrp_client
diff options
context:
space:
mode:
authorJean-Baptiste Maillet <jean-baptiste.maillet@parrot.com>2014-12-09 14:44:10 +0100
committerJean-Baptiste Maillet <jean-baptiste.maillet@parrot.com>2014-12-09 14:44:10 +0100
commitb22cd6a98a7485b7e7a966b886277b3b1d5e6884 (patch)
tree265c47ce4a309786c29522364211c3dedd3d5818 /examples/mrp_client
parent15d4033f852b81b95e3e216fefb419ce72d30766 (diff)
downloadOpen-AVB-b22cd6a98a7485b7e7a966b886277b3b1d5e6884.tar.gz
mrpl, mrpq: free mrpd daemon message buffer
Bug introduced by previous commit.
Diffstat (limited to 'examples/mrp_client')
-rwxr-xr-xexamples/mrp_client/mrpl.c1
-rwxr-xr-xexamples/mrp_client/mrpq.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/mrp_client/mrpl.c b/examples/mrp_client/mrpl.c
index 9d88a390..90fa412b 100755
--- a/examples/mrp_client/mrpl.c
+++ b/examples/mrp_client/mrpl.c
@@ -117,6 +117,7 @@ int main(int argc, char *argv[])
sprintf(msgbuf, "S+L:L=A0369F022EEE0000,D=2");
rc = mrpdclient_sendto(mrpd_sock, msgbuf, MRPDCLIENT_MAX_MSG_SIZE);
+ free(msgbuf);
rc |= mrpdclient_close(&mrpd_sock);
diff --git a/examples/mrp_client/mrpq.c b/examples/mrp_client/mrpq.c
index 8ee01675..e218f653 100755
--- a/examples/mrp_client/mrpq.c
+++ b/examples/mrp_client/mrpq.c
@@ -125,6 +125,7 @@ int main(int argc, char *argv[])
rc = mrpdclient_recv(mrpd_sock, process_ctl_msg);
if (rc <= SOCKET_ERROR)
printf("recv error\n");
+ free(msgbuf);
rc = mrpdclient_close(&mrpd_sock);