Just move qemudFreeVMDef() alonside qemudFreeVM() Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx> Index: libvirt/qemud/conf.h =================================================================== --- libvirt.orig/qemud/conf.h +++ libvirt/qemud/conf.h @@ -30,12 +30,12 @@ int qemudBuildCommandLine(struct qemud_s struct qemud_vm *vm, char ***argv); -void qemudFreeVMDef(struct qemud_vm_def *vm); int qemudScanConfigs(struct qemud_server *server); int qemudDeleteConfig(struct qemud_server *server, const char *configFile, const char *name); +void qemudFreeVMDef(struct qemud_vm_def *vm); void qemudFreeVM(struct qemud_vm *vm); struct qemud_vm *qemudLoadConfigXML(struct qemud_server *server, const char *file, --