Message ID | 1401268627-8515-13-git-send-email-armbru@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/vvfat.c b/block/vvfat.c index 2c82a5c..e26a179 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -787,7 +787,9 @@ static int read_directory(BDRVVVFATState* s, int mapping_index) s->current_mapping->path=buffer; s->current_mapping->read_only = (st.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH)) == 0; - } + } else { + g_free(buffer); + } } closedir(dir);