Diff between 51c34da9d693fe12d7c940f7224e830e41d8f1dd and 8fe1e5e165ad7b4f7c318f507aa85cd747401b81

Changed Files

File Additions Deletions Status
gobex/gobex.c +2 -0 modified

Full Patch

diff --git a/gobex/gobex.c b/gobex/gobex.c
index 185eed4..e9b89ce 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -471,6 +471,8 @@ encode:
 				check_srm_final(obex,
 						obex->tx_buf[0] & ~FINAL_BIT);
 			pending_pkt_free(p);
+			/* g_free() doesn't set the pointer to NULL */
+			p = NULL;
 		}
 
 		obex->tx_data = len;