Remove references to Q_malloc and Q_free