Fixed by replacing malloc with calloc and also changed the number of returned structures to the number of fully filled ones during deserializing objects in dap_store_unpacket_multiple()