Merge lp:~eday/gearmand/recv-pkt-double-free into lp:gearmand/1.0

Proposed by Eric Day
Status: Merged
Merged at revision: not available
Proposed branch: lp:~eday/gearmand/recv-pkt-double-free
Merge into: lp:gearmand/1.0
Diff against target: 15 lines (+4/-0)
1 file modified
libgearman/connection.c (+4/-0)
To merge this branch: bzr merge lp:~eday/gearmand/recv-pkt-double-free
Reviewer Review Type Date Requested Status
Gearman-developers Pending
Review via email: mp+18237@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Eric Day (eday) wrote :

Bug reported on mailing list, should be in before next release.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libgearman/connection.c'
2--- libgearman/connection.c 2010-01-05 18:45:42 +0000
3+++ libgearman/connection.c 2010-01-28 23:49:10 +0000
4@@ -264,7 +264,11 @@
5
6 connection->recv_state= GEARMAN_CON_RECV_UNIVERSAL_NONE;
7 if (connection->recv_packet != NULL)
8+ {
9 gearman_packet_free(connection->recv_packet);
10+ connection->recv_packet= NULL;
11+ }
12+
13 connection->recv_buffer_ptr= connection->recv_buffer;
14 connection->recv_buffer_size= 0;
15 }

Subscribers

People subscribed via source and target branches

to all changes: