ext/libuv/src/unix/linux-inotify.c in libuv-1.2.0 vs ext/libuv/src/unix/linux-inotify.c in libuv-1.3.0

- old
+ new

@@ -205,11 +205,11 @@ w = find_watcher(handle->loop, wd); if (w) goto no_insert; - w = malloc(sizeof(*w) + strlen(path) + 1); + w = uv__malloc(sizeof(*w) + strlen(path) + 1); if (w == NULL) return -ENOMEM; w->wd = wd; w->path = strcpy((char*)(w + 1), path); @@ -243,10 +243,10 @@ if (QUEUE_EMPTY(&w->watchers)) { /* No watchers left for this path. Clean up. */ RB_REMOVE(watcher_root, CAST(&handle->loop->inotify_watchers), w); uv__inotify_rm_watch(handle->loop->inotify_fd, w->wd); - free(w); + uv__free(w); } return 0; }