close file handle

This commit is contained in:
Sebastian Ramacher 2011-07-10 19:51:59 +02:00
parent 0bc03914f6
commit 7a15100dbc

View file

@ -1499,13 +1499,13 @@ open_stdin(gchar* password)
return FALSE; return FALSE;
} }
} }
close(handle);
if (count != 0) if (count != 0)
{ {
gchar* message = g_strdup_printf("Can not read from stdin."); gchar* message = g_strdup_printf("Can not read from stdin.");
notify(ERROR, message); notify(ERROR, message);
g_free(message); g_free(message);
close(handle);
g_unlink(file); g_unlink(file);
g_free(file); g_free(file);
return FALSE; return FALSE;