aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/uniform_query.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-03-26 14:34:38 +0200
committermarha <marha@users.sourceforge.net>2012-03-26 14:34:38 +0200
commit1d6d472342aee7b9c68e9f1d92762ef808d35ac2 (patch)
tree49700f649b4f4fedb3346ea7c58776925be11990 /mesalib/src/mesa/main/uniform_query.cpp
parent0f834b91a4768673833ab4917e87d86c237bb1a6 (diff)
downloadvcxsrv-1d6d472342aee7b9c68e9f1d92762ef808d35ac2.tar.gz
vcxsrv-1d6d472342aee7b9c68e9f1d92762ef808d35ac2.tar.bz2
vcxsrv-1d6d472342aee7b9c68e9f1d92762ef808d35ac2.zip
fontconfig libxcb mesa xkeyboard-config git update 26 Mar 2012
Diffstat (limited to 'mesalib/src/mesa/main/uniform_query.cpp')
-rw-r--r--mesalib/src/mesa/main/uniform_query.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/uniform_query.cpp b/mesalib/src/mesa/main/uniform_query.cpp
index 991df7896..da41ee84c 100644
--- a/mesalib/src/mesa/main/uniform_query.cpp
+++ b/mesalib/src/mesa/main/uniform_query.cpp
@@ -905,8 +905,10 @@ _mesa_get_uniform_location(struct gl_context *ctx,
name_copy[i-1] = '\0';
offset = strtol(&name[i], NULL, 10);
- if (offset < 0)
+ if (offset < 0) {
+ free(name_copy);
return -1;
+ }
array_lookup = true;
} else {