diff options
author | Christian Pointner <equinox@helsinki.at> | 2009-11-23 22:26:36 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2009-11-23 22:26:36 (GMT) |
commit | 15005a988b6362548a1c1bed5885debfe868c7fd (patch) | |
tree | 17da6a407180bbc86c423bc3bf507fc90278b1a3 /string_list.c | |
parent | fa73e7ef3c956527331d9897c01ded8e8f40fd19 (diff) |
added asynchronous script execution
fixed memory error at string_list and watch_list
Diffstat (limited to 'string_list.c')
-rw-r--r-- | string_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string_list.c b/string_list.c index e5e8a62..a4f4ab8 100644 --- a/string_list.c +++ b/string_list.c @@ -92,8 +92,8 @@ int string_list_add(string_list_t* list, const char* string) tmp->next_->next_ = 0; tmp->next_->string_ = strdup(string); if(!tmp->next_->string_) { - free(list->first_); - list->first_ = NULL; + free(tmp->next_); + tmp->next_ = NULL; return -2; } } |