fix memory leak in jpeg encoding
fix memory leak in jpeg encoding

Signed-off-by: James Tang <cc2ad6c051f174f9fe16977a6d930b7e5d2a0da6@intel.com>

01org/iotg-lin-gfx-va-driver,uartie/vaapi-intel-driver,uartie/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver,01org/iotg-lin-gfx-va-driver,uartie/vaapi-intel-driver,uartie/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver,uartie/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver