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 /watch_list.c | |
parent | fa73e7ef3c956527331d9897c01ded8e8f40fd19 (diff) |
added asynchronous script execution
fixed memory error at string_list and watch_list
Diffstat (limited to 'watch_list.c')
-rw-r--r-- | watch_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/watch_list.c b/watch_list.c index 7e23b93..39c61f2 100644 --- a/watch_list.c +++ b/watch_list.c @@ -80,8 +80,8 @@ int watch_list_add(watch_list_t* list, int watch_fd, const char* string) tmp->next_->watch_fd_ = watch_fd; tmp->next_->path_ = strdup(string); if(!tmp->next_->path_) { - free(list->first_); - list->first_ = NULL; + free(tmp->next_); + tmp->next_ = NULL; return -2; } } |