Fix handle leak in get_description()

This commit is contained in:
Konrad Borowski
2014-05-01 10:14:12 +02:00
parent f8e35de18d
commit dd47da92f5

View File

@@ -620,6 +620,7 @@ static char *get_description(const char *mimetype)
perror("read");
error=1;
free((void *)contents);
close(fd);
return 0;
}