summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f644da)
raw | patch | inline | side by side (parent: 4f644da)
author | Arnie Reynoso <arnier@ti.com> | |
Fri, 14 Feb 2014 19:53:31 +0000 (11:53 -0800) | ||
committer | Chris Ring <cring@ti.com> | |
Tue, 18 Feb 2014 18:05:31 +0000 (10:05 -0800) |
MessageQ msg being put to the transport layer can only be freed
if the msg is successfully placed. Otherwise, it's the responsibility
of the application to free the msg.
if the msg is successfully placed. Otherwise, it's the responsibility
of the application to free the msg.
linux/src/api/MessageQ.c | patch | blob | history | |
qnx/src/api/MessageQ.c | patch | blob | history |
index 33aaff184cedd17f9ea96a03604bb1227b1cec4c..1911bffb52ee551f9c50823aecbe351292eb8bb3 100644 (file)
--- a/linux/src/api/MessageQ.c
+++ b/linux/src/api/MessageQ.c
/*
- * Copyright (c) 2012-2013, Texas Instruments Incorporated
+ * Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
printf ("transportPut: send failed: %d, %s\n",
errno, strerror(errno));
status = MessageQ_E_FAIL;
+ goto exit;
}
/*
*/
MessageQ_free (msg);
+exit:
return (status);
}
diff --git a/qnx/src/api/MessageQ.c b/qnx/src/api/MessageQ.c
index b9a477caab7b82c15657f8a1eeacc1bf8409e70e..d225ec432f0e18f78daaac4f9005b996bd7b5ef8 100644 (file)
--- a/qnx/src/api/MessageQ.c
+++ b/qnx/src/api/MessageQ.c
/*
- * Copyright (c) 2012-2013, Texas Instruments Incorporated
+ * Copyright (c) 2012-2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
printf ("transportPut: write failed: %d, %s\n",
errno, strerror(errno));
status = MessageQ_E_FAIL;
+ goto exit;
}
/*
*/
MessageQ_free (msg);
+exit:
return (status);
}