Skip to content

Commit eb21f4f

Browse files
committed
Fix. Cleanup socket callback.
1 parent 8676dc0 commit eb21f4f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lcmulti.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ static int lcurl_multi_cleanup(lua_State *L){
7474

7575
luaL_unref(L, LCURL_LUA_REGISTRY, p->tm.cb_ref);
7676
luaL_unref(L, LCURL_LUA_REGISTRY, p->tm.ud_ref);
77+
luaL_unref(L, LCURL_LUA_REGISTRY, p->sc.cb_ref);
78+
luaL_unref(L, LCURL_LUA_REGISTRY, p->sc.ud_ref);
7779
p->tm.cb_ref = p->tm.ud_ref = LUA_NOREF;
80+
p->sc.cb_ref = p->sc.ud_ref = LUA_NOREF;
7881
return 0;
7982
}
8083

0 commit comments

Comments
 (0)