From 38c738571309243bfcb82577c257ae0c571fbc15 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 7 Sep 2000 21:00:56 +0000 Subject: Make this not leak. * camel-session.c (camel_session_get_storage_path): Make this not leak. svn path=/trunk/; revision=5243 --- camel/camel-session.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 81781fe85a..3e6630a9c8 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -347,8 +347,9 @@ camel_session_get_storage_path (CamelSession *session, CamelService *service, { char *path, *p; - path = g_strdup_printf ("%s/%s", session->storage_path, - camel_service_get_path (service)); + p = camel_service_get_path (service); + path = g_strdup_printf ("%s/%s", session->storage_path, p); + g_free (p); if (access (path, F_OK) == 0) return path; -- cgit v1.2.3