applied lot of API changes
[util-vserver.git] / util-vserver / lib_internal / command-free.c
index 8163503..7075857 100644 (file)
@@ -25,5 +25,6 @@
 void
 Command_free(struct Command *cmd)
 {
-  Vector_free(&cmd->params);
+  if (cmd->params_style_==parVEC)
+    Vector_free(&cmd->params.v);
 }