Welcome to little lamb

Code » anopa » commit 46ef2af

Fix memory leak

author Olivier Brunel
2017-03-30 19:01:45 UTC
committer Olivier Brunel
2017-06-18 12:30:42 UTC
parent 5b8d3f4f9540ab8613df5df2a9ff01e529e61967

Fix memory leak

src/libanopa/service.c +2 -0

diff --git a/src/libanopa/service.c b/src/libanopa/service.c
index 0627d10..a13aae9 100644
--- a/src/libanopa/service.c
+++ b/src/libanopa/service.c
@@ -398,6 +398,8 @@ aa_ensure_service_loaded (int si, aa_mode mode, int no_wants, aa_autoload_cb al_
         }
         else
             aa_service (si)->secs_timeout = aa_secs_timeout;
+
+        stralloc_free (&sa_to);
     }
 
     stralloc_free (&sa);