We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162a78e commit ec49ed8Copy full SHA for ec49ed8
luzer/luzer.c
@@ -290,15 +290,13 @@ search_module_path(char *so_path, size_t len) {
290
*/
291
NO_SANITIZE static int
292
load_custom_mutator_lib(void) {
293
- char *so_path = calloc(PATH_MAX, sizeof(char));
+ char so_path[PATH_MAX];
294
int rc = search_module_path(so_path, PATH_MAX);
295
if (rc) {
296
- free(so_path);
297
DEBUG_PRINT("search_module_path");
298
return -1;
299
}
300
void *custom_mutator_lib = dlopen(so_path, RTLD_LAZY);
301
302
if (!custom_mutator_lib) {
303
DEBUG_PRINT("dlopen");
304
0 commit comments