avoid leak upon failed realloc
[libguestfs.git] / daemon / zerofree.c
index b44965a..8000bb3 100644 (file)
@@ -1,5 +1,5 @@
 /* libguestfs - the guestfsd daemon
- * Copyright (C) 2009 Red Hat Inc. 
+ * Copyright (C) 2009 Red Hat Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@
 #include "actions.h"
 
 int
-do_zerofree (const char *device)
+do_zerofree (char *device)
 {
   char *err;
   int r;