main: Don't leak temporary texture rows
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 1 Sep 2014 08:33:36 +0000 (01:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 Sep 2014 22:50:27 +0000 (15:50 -0700)
Reviewed-by: Dave Airlie <airlied@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/texstore.c

index d2aba8ba1e30ae40a578d556933817bac148ca2e..f913e42d31564e4efdd789c98310dacf3b1bdf51 100644 (file)
@@ -1634,6 +1634,8 @@ texstore_via_float(TEXSTORE_PARAMS)
       }
    }
 
+   free(tmp_row);
+
    return GL_TRUE;
 }
 
@@ -1702,6 +1704,8 @@ texstore_rgba_integer(TEXSTORE_PARAMS)
       }
    }
 
+   free(tmp_row);
+
    return GL_TRUE;
 }