Skip to content

Commit ecb4432

Browse files
committed
module.c: Fix memory leak in bbs_module_unload().
1 parent 9ce526b commit ecb4432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bbs/module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,9 @@ int bbs_module_unload(const char *name)
13741374
#endif
13751375

13761376
stringlist_init(&unloaded);
1377-
13781377
res = unload_resource(name, 0, &unloaded);
1378+
stringlist_empty_destroy(&unloaded);
1379+
13791380
return res ? -1 : 0;
13801381
}
13811382

0 commit comments

Comments
 (0)