Browse Source

Merge pull request #3443 from martin-frbg/issue3441

Fix NULL pointer checks in blas_memory_alloc
tags/v0.3.19
Martin Kroeker GitHub 4 years ago
parent
commit
2d7ca63e21
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      driver/others/memory.c

+ 2
- 2
driver/others/memory.c View File

@@ -2921,7 +2921,7 @@ void *blas_memory_alloc(int procpos){


func = &memoryalloc[0]; func = &memoryalloc[0];


while ((func != NULL) && (map_address == (void *) -1)) {
while ((*func != NULL) && (map_address == (void *) -1)) {


map_address = (*func)((void *)base_address); map_address = (*func)((void *)base_address);


@@ -3032,7 +3032,7 @@ allocation2:


func = &memoryalloc[0]; func = &memoryalloc[0];


while ((func != NULL) && (map_address == (void *) -1)) {
while ((*func != NULL) && (map_address == (void *) -1)) {


map_address = (*func)((void *)base_address); map_address = (*func)((void *)base_address);




Loading…
Cancel
Save