Update qrcode.c

change malloc to emalloc