From 1176dba49d26b7aa8a7b489e27c7924482a61dbe Mon Sep 17 00:00:00 2001 From: Forrest Zhao Date: Mon, 16 Nov 2009 15:02:56 +0800 Subject: [PATCH] obexd: Remove unnecessary code in cmd_put() These bufs are released in OBEX_EV_REQDONE, so no need to duplicate the code in cmd_put() --- obexd/src/obex.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index 9856d6571..ca8a7bb2c 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -265,21 +265,6 @@ static void cmd_get(struct obex_session *os, obex_t *obex, obex_object_t *obj) g_return_if_fail(chk_cid(obex, obj, os->cid)); - if (os->type) { - g_free(os->type); - os->type = NULL; - } - - if (os->name) { - g_free(os->name); - os->name = NULL; - } - - if (os->buf) { - g_free(os->buf); - os->buf = NULL; - } - while (OBEX_ObjectGetNextHeader(obex, obj, &hi, &hd, &hlen)) { switch (hi) { case OBEX_HDR_NAME: -- 2.47.3