aboutsummaryrefslogtreecommitdiff
path: root/libcacard/vreader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcacard/vreader.c')
-rw-r--r--libcacard/vreader.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libcacard/vreader.c b/libcacard/vreader.c
index d2a9b7df41..ffa05b6ca5 100644
--- a/libcacard/vreader.c
+++ b/libcacard/vreader.c
@@ -155,9 +155,7 @@ vreader_free(VReader *reader)
if (reader->card) {
vcard_free(reader->card);
}
- if (reader->name) {
- g_free(reader->name);
- }
+ g_free(reader->name);
if (reader->reader_private_free) {
reader->reader_private_free(reader->reader_private);
}