summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'print.c')
-rw-r--r--print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/print.c b/print.c
index 2901c5012..91e5ae5ee 100644
--- a/print.c
+++ b/print.c
@@ -184,6 +184,7 @@ static int print_supported_chips(void)
dev = malloc(strlen(chip->name) + 1);
if (dev == NULL) {
msg_gerr("Out of memory!\n");
+ free(ven);
return 1;
}
strcpy(dev, chip->name);