rem: struct sr_module* t, *mod;
add: struct sr_module* mod;
context: int register_module(module_register register_f, char* path, void* handle){	int ret;	struct module_exports* e;	struct sr_module* t, *mod;		ret=-1;	e=(*register_f)();	if (e==0){		LOG(L_ERR, "ERROR: mod_register returned null\n");		goto error;	}	/* add module to the list */	if ((mod=malloc(sizeof(struct sr_module)))==0){		LOG(L_ERR, "load_module: memory allocation failure\n");		ret=E_OUT_OF_MEM;		goto error;	}	memset(mod,0, sizeof(struct sr_module));	mod->path=path;	mod->handle=handle;	mod->exports=e;	mod->next=modules;	modules=mod;	return 0;error:	return ret;}