You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2015/01/31 13:18:03 UTC
qpid-proton git commit: minor fix to send-async.c to clean up
valgrind warning
Repository: qpid-proton
Updated Branches:
refs/heads/master e9db8dfba -> 9ede20887
minor fix to send-async.c to clean up valgrind warning
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/9ede2088
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/9ede2088
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/9ede2088
Branch: refs/heads/master
Commit: 9ede20887ace32fb558887515470abe6e8f5968f
Parents: e9db8df
Author: Rafael Schloming <rh...@alum.mit.edu>
Authored: Sat Jan 31 07:17:52 2015 -0500
Committer: Rafael Schloming <rh...@alum.mit.edu>
Committed: Sat Jan 31 07:17:52 2015 -0500
----------------------------------------------------------------------
examples/messenger/c/send-async.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/9ede2088/examples/messenger/c/send-async.c
----------------------------------------------------------------------
diff --git a/examples/messenger/c/send-async.c b/examples/messenger/c/send-async.c
index 846f8e2..58cc9d0 100644
--- a/examples/messenger/c/send-async.c
+++ b/examples/messenger/c/send-async.c
@@ -73,6 +73,8 @@ void process(void) {
if (pn_messenger_stopped(messenger)) {
pn_message_free(message);
pn_messenger_free(messenger);
+ message = NULL;
+ messenger = NULL;
}
}
@@ -158,7 +160,7 @@ int main(int argc, char** argv)
process();
}
- while (!pn_messenger_stopped(messenger)) {
+ while (messenger && !pn_messenger_stopped(messenger)) {
pn_messenger_work(messenger, 0);
process();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org