* hostio.c (require_data): Free *data, not data.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 28 Feb 2011 15:55:08 +0000 (15:55 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Mon, 28 Feb 2011 15:55:08 +0000 (15:55 +0000)
gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio.c

index 34d63ff712db1d39e34ea46b033a07e8266af531..02b50a4cd81cbe1caa09da2d7d58b6451b92c6cf 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * hostio.c (require_data): Free *data, not data.
+
 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * hostio.c (require_data): Use free, not xfree.
index fbd286f0cdf61d5cd346878cd17f4d2b1cd65b64..3b65febcf6c08be749770a5d0f5c2f69d8256dd5 100644 (file)
@@ -135,7 +135,7 @@ require_data (char *p, int p_len, char **data, int *data_len)
 
   if (escaped)
     {
-      free (data);
+      free (*data);
       return -1;
     }