Added checking of return value from malloc() in reg_init()
Attach a file by drag & drop or click to upload