]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/smux.cpp
Prevent memory leak in smux plugin
[stg.git] / projects / stargazer / plugins / other / smux / smux.cpp
index d3f5bbdb547241d549141418218cd98fe8b4582e..99c65b8ceef672affbdcaa94865e41e574bf5c78 100644 (file)
@@ -258,7 +258,10 @@ while(running)
         {
         SMUX_PDUs_t * pdus = RecvSMUXPDUs(sock);
         if (pdus)
+            {
             DispatchPDUs(pdus);
+            ASN_STRUCT_FREE(asn_DEF_SMUX_PDUs, pdus);
+            }
         }
     if (!running)
         break;