Skip to content

Commit

Permalink
Fix issue with wrong call to free data in points_to()
Browse files Browse the repository at this point in the history
init_points_to_prop() was called to initialize, but fini_points_to_anal() was called to finalize; should have been fini_points_to_prop()
  • Loading branch information
gklimowicz committed Mar 20, 2019
1 parent 86ba287 commit 8efdbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/flang1/flang1exe/pointsto.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2006-2019, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -4247,7 +4247,7 @@ points_to(void)
if (head.stg_size > 1000000) {
/* abort */
Trace(("pointer target analysis is too expensive, abort\n"));
fini_points_to_anal();
fini_points_to_prop();
return;
}
STG_ALLOC(head, head.stg_size);
Expand Down

0 comments on commit 8efdbb1

Please sign in to comment.