diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2006-03-22 20:00:05 +0800 |
---|---|---|
committer | Andre Klapper <aklapper@src.gnome.org> | 2006-03-22 20:00:05 +0800 |
commit | d5e79599437b6e1c47ef1ba5f5ae58c2410bfa2a (patch) | |
tree | 8fd04ca21a2595954f75abbf4838af795c044178 /mail/em-utils.c | |
parent | f77c67c998bfbb0d8f9385ce7f587a65214ffc7f (diff) | |
download | gsoc2013-evolution-d5e79599437b6e1c47ef1ba5f5ae58c2410bfa2a.tar.gz gsoc2013-evolution-d5e79599437b6e1c47ef1ba5f5ae58c2410bfa2a.tar.zst gsoc2013-evolution-d5e79599437b6e1c47ef1ba5f5ae58c2410bfa2a.zip |
Fixed premature memory free. Fixes bug #335203.
2006-03-22 Patrick Ohly <patrick.ohly@intel.com>
* em-utils.c (em_utils_selection_set_urilist):
Fixed premature memory free. Fixes bug #335203.
svn path=/trunk/; revision=31740
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 458fd2c02c..76c817aa17 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1208,12 +1208,13 @@ em_utils_selection_set_urilist(GtkSelectionData *data, CamelFolder *folder, GPtr g_free(file); fd = g_open(tmpfile, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0666); - g_free(tmpfile); if (fd == -1) { + g_free(tmpfile); return; } uri = g_filename_to_uri(tmpfile, NULL, NULL); + g_free(tmpfile); fstream = camel_stream_fs_new_with_fd(fd); if (fstream) { if (em_utils_write_messages_to_stream(folder, uids, fstream) == 0) { |