2
0
Эх сурвалжийг харах

core: load_module - do not free 'path'

- it is stored by register_module and printed later for modparam
Daniel-Constantin Mierla 16 жил өмнө
parent
commit
08605a1c05
1 өөрчлөгдсөн 0 нэмэгдсэн , 2 устгасан
  1. 0 2
      sr_module.c

+ 0 - 2
sr_module.c

@@ -405,8 +405,6 @@ reload:
 		}
 		}
 	}
 	}
 	if (register_module(*mod_if_ver, exp, path, handle)<0) goto error1;
 	if (register_module(*mod_if_ver, exp, path, handle)<0) goto error1;
-	if (path && path!=mod_path)
-		pkg_free(path);
 	return 0;
 	return 0;
 
 
 error1:
 error1: