From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH v2 3/6] service: remove pdu without meta
Date: Fri, 23 Mar 2012 11:39:16 -0700 [thread overview]
Message-ID: <1332527956.1870.45.camel@aeonflux> (raw)
In-Reply-To: <1332521141-31865-4-git-send-email-sebastien.bianti@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
Hi Sebastien,
> src/service.c | 11 ++++++-----
> 1 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/src/service.c b/src/service.c
> index 0161ec0..8dbee12 100644
> --- a/src/service.c
> +++ b/src/service.c
> @@ -777,11 +777,17 @@ static DBusMessage *send_message(DBusConnection *conn,
> return __mms_error_trans_failure(dbus_msg);
> }
>
> + g_free(request->data_path);
> +
> + request->data_path = g_strdup_printf("%s/.mms/%s/%s", g_get_home_dir(),
> + service->identity, msg->uuid);
> +
> meta = mms_store_meta_open(service->identity, msg->uuid);
> if (meta == NULL) {
> release_attachement_data(msg->attachments);
> mms_message_free(msg);
>
> + unlink(request->data_path);
> mms_request_destroy(request);
Same here. That code keeps duplicating all over.
Regards
Marcel
next prev parent reply other threads:[~2012-03-23 18:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 16:45 [PATCH v2 0/6] mmsd: bug fixing in send message recovery =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 16:45 ` [PATCH v2 1/6] service: remove dead file =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:37 ` Marcel Holtmann
2012-03-23 16:45 ` [PATCH v2 2/6] service: fixed possible meta with NULL uuid =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:38 ` Marcel Holtmann
2012-03-23 16:45 ` [PATCH v2 3/6] service: remove pdu without meta =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:39 ` Marcel Holtmann [this message]
2012-03-23 16:45 ` [PATCH v2 4/6] service: request_post_file opens the pdu itself =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:40 ` Marcel Holtmann
2012-03-23 16:45 ` [PATCH v2 5/6] service: fix some leaks =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:40 ` Marcel Holtmann
2012-03-23 16:45 ` [PATCH v2 6/6] service: request needs to keep msg =?unknown-8bit?q?S=C3=A9bastien?= Bianti
2012-03-23 18:41 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332527956.1870.45.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox