cleanup
diff --git a/ebtables.c b/ebtables.c
index 491aa2e..2b0807f 100644
--- a/ebtables.c
+++ b/ebtables.c
@@ -781,6 +781,7 @@
 		case 'M': /* Modprobe */
 			if (OPT_COMMANDS)
 				ebt_print_error2("Please put the -M option earlier");
+			free(ebt_modprobe);
 			ebt_modprobe = optarg;
 			break;
 		case 'h': /* Help */