<div dir="auto">Reviewed-by: Thomas Helland<<a href="mailto:thomashelland90@gmail.com">thomashelland90@gmail.com</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Jun 12, 2017 21:50, "Dave Airlie" <<a href="mailto:airlied@gmail.com">airlied@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
>>>     Ignoring storage allocated by "reralloc_size(buf->mem_ctx, buf->data, buf->size)" leaks it.<br>
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
 src/util/u_dynarray.h | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/util/u_dynarray.h b/src/util/u_dynarray.h<br>
index e9109cc..fdcd09c 100644<br>
--- a/src/util/u_dynarray.h<br>
+++ b/src/util/u_dynarray.h<br>
@@ -107,7 +107,7 @@ util_dynarray_trim(struct util_dynarray *buf)<br>
    if (buf->size != buf->capacity) {<br>
       if (buf->size) {<br>
          if (buf->mem_ctx) {<br>
-            reralloc_size(buf->mem_ctx, buf->data, buf->size);<br>
+            buf->data = reralloc_size(buf->mem_ctx, buf->data, buf->size);<br>
          } else {<br>
             buf->data = realloc(buf->data, buf->size);<br>
          }<br>
--<br>
2.9.4<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>