mdmfs.c main : the local variable mdconfig_arg is allocated but never freed.
mdmfs.c do_mdconfig_attach_au : the local variable linebuf is allocated but never freed.
In both cases, free the memory after its last use.
Differential D9768
Fix memory leaks in mdmfs trix_juniper.net on Feb 23 2017, 4:47 PM. Authored by Tags None Referenced Files
Subscribers
Details mdmfs.c main : the local variable mdconfig_arg is allocated but never freed. mdmfs.c do_mdconfig_attach_au : the local variable linebuf is allocated but never freed. In both cases, free the memory after its last use. Run clang static analyzer, scan-build, before to reproduce the problem. Run after to verify problem resolution.
Diff Detail
Event TimelineComment Actions I agree these should also be freed. |