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 <[email protected]> Authored: Sat Jan 31 07:17:52 2015 -0500 Committer: Rafael Schloming <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
