Skip to content

Commit 2ec581b

Browse files
committed
free filename to prevent memleak
1 parent 94fe19a commit 2ec581b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

axiom/util_health.c

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ char* nrh_get_health_filepath(char* filedir) {
129129

130130
filepath = nr_formatf("%s/%s", filedir, filename);
131131

132+
nr_free(filename);
132133
return filepath;
133134
}
134135

0 commit comments

Comments
 (0)