mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
smaller bugfixes
This commit is contained in:
parent
ec49fc6bad
commit
4b2d4fe603
3 changed files with 4 additions and 6 deletions
|
@ -21,8 +21,6 @@
|
|||
struct cbuilder;
|
||||
|
||||
struct cbuilder_model {
|
||||
char *name;
|
||||
|
||||
void (*code)();
|
||||
void (*ram)();
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ static struct plugin p = {
|
|||
.open = cbuilder_open,
|
||||
.close = cbuilder_close,
|
||||
.read = cbuilder_read,
|
||||
.write = cbuilder_write,
|
||||
.write = cbuilder_write
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -52,9 +52,9 @@ int plugin_destroy(struct plugin *p)
|
|||
{
|
||||
if (p->state == PLUGIN_STATE_LOADED)
|
||||
plugin_unload(p);
|
||||
|
||||
free(p->name);
|
||||
free(p->path);
|
||||
|
||||
if (p->path)
|
||||
free(p->path);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue