1
0
Fork 0
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:
Steffen Vogel 2017-03-07 07:20:49 -04:00
parent ec49fc6bad
commit 4b2d4fe603
3 changed files with 4 additions and 6 deletions

View file

@ -21,8 +21,6 @@
struct cbuilder;
struct cbuilder_model {
char *name;
void (*code)();
void (*ram)();

View file

@ -123,7 +123,7 @@ static struct plugin p = {
.open = cbuilder_open,
.close = cbuilder_close,
.read = cbuilder_read,
.write = cbuilder_write,
.write = cbuilder_write
}
};

View file

@ -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;
}