Skip to content

Commit

Permalink
Fix file leak in read_thrust_attachments()
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
  • Loading branch information
smcameron committed May 5, 2018
1 parent 47dae00 commit 2038e6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thrust_attachment.c
Expand Up @@ -67,6 +67,7 @@ struct thrust_attachment_point *read_thrust_attachments(char *filename, float sc
vec3_mul_self(&answer->port[i].pos, scaling_factor);
}
answer->nports = n;
fclose(f);
return answer;

error_out:
Expand Down

0 comments on commit 2038e6c

Please sign in to comment.