add: *_r = 0;
context: static int store_result(db_con_t* _h, db_res_t** _r){	if ((!_h) || (!_r)) {		LOG(L_ERR, "store_result: Invalid parameter value\n");		return -1;	}	*_r = new_result();	if (*_r == 0) {		LOG(L_ERR, "store_result: No memory left\n");		return -2;	}	CON_RESULT(_h) = mysql_store_result(CON_CONNECTION(_h));	if (!CON_RESULT(_h)) {		if (mysql_field_count(CON_CONNECTION(_h)) == 0) {			(*_r)->col.n = 0;			(*_r)->n = 0;			return 0;		} else {			LOG(L_ERR, "store_result: %s\n", mysql_error(CON_CONNECTION(_h)));			free_result(*_r);			*_r = 0;			return -3;		}	}        if (convert_result(_h, *_r) < 0) {		LOG(L_ERR, "store_result: Error while converting result\n");		pkg_free(*_r);		     /* This cannot be used because if convert_result fails,		      * free_result will try to free rows and columns too 		      * and free will be called two times		      */		     /* free_result(*_r); */		return -4;	}		return 0;}