diff options
Diffstat (limited to 'trafgen_dev.c')
-rw-r--r-- | trafgen_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_dev.c b/trafgen_dev.c index 489da98..b01a96d 100644 --- a/trafgen_dev.c +++ b/trafgen_dev.c @@ -257,6 +257,7 @@ struct dev_io *dev_io_create(const char *name, enum dev_io_mode_t mode) dev->name = xstrndup(name, IFNAMSIZ); dev->ops = &dev_net_ops; } else { + free(dev); fprintf(stderr, "No networking device or pcap file: %s\n", name); return NULL; } |