Преглед изворни кода

Revert "data_request: Fix memory leak on prefetch getting ENOMEM"

This reverts commit b54df49e0a3969474b4e0d54b9d886a345a6d4ab.
Samuel Thibault пре 4 година
родитељ
комит
b410c7ed8c
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      src/datawizard/data_request.c

+ 0 - 5
src/datawizard/data_request.c

@@ -556,11 +556,6 @@ static int starpu_handle_data_request(struct _starpu_data_request *r, unsigned m
 	{
 		/* If there was not enough memory, we will try to redo the
 		 * request later. */
-
-		if (r->prefetch > STARPU_FETCH)
-			/* Drop ref until next try */
-			dst_replicate->refcnt--;
-
 		_starpu_spin_unlock(&handle->header_lock);
 		return -ENOMEM;
 	}