Skip to content

Commit ec49ed8

Browse files
Buristanligurio
authored andcommitted
luzer: replace heap with stack
1 parent 162a78e commit ec49ed8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

luzer/luzer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,13 @@ search_module_path(char *so_path, size_t len) {
290290
*/
291291
NO_SANITIZE static int
292292
load_custom_mutator_lib(void) {
293-
char *so_path = calloc(PATH_MAX, sizeof(char));
293+
char so_path[PATH_MAX];
294294
int rc = search_module_path(so_path, PATH_MAX);
295295
if (rc) {
296-
free(so_path);
297296
DEBUG_PRINT("search_module_path");
298297
return -1;
299298
}
300299
void *custom_mutator_lib = dlopen(so_path, RTLD_LAZY);
301-
free(so_path);
302300
if (!custom_mutator_lib) {
303301
DEBUG_PRINT("dlopen");
304302
return -1;

0 commit comments

Comments
 (0)