summaryrefslogtreecommitdiff
path: root/gobex
diff options
context:
space:
mode:
Diffstat (limited to 'gobex')
-rw-r--r--gobex/gobex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 185eed4d7..e9b89cead 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;