2 Replies Latest reply on Nov 13, 2017 12:15 AM by Saurabh11

    Memory leak in clSetKernelArg with arg_value=NULL

    Saurabh11

      I am using "block_advanced_motion_estimate_check_intel" kernel for motion estimation. As per OpenCL Extensions for AVME, some of the arg_value can be set to NULL if the corresponding parameter needs to be ignored. When setting arg_value to NULL, there is a memory leak and valgrind shows the leak in the NULL argument lines. Is there any way to pass NULL and still get rid of memory leak? Is there any setting required so that this scenario is not treated as memory leak?