File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -706,6 +706,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
706706 if (token == NULL )
707707 {
708708 ASSERT (false);
709+ free (fdinfo );
709710 continue ;
710711 }
711712
@@ -717,6 +718,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
717718 if (token == NULL )
718719 {
719720 ASSERT (false);
721+ free (fdinfo );
720722 continue ;
721723 }
722724
@@ -725,6 +727,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
725727 if (token == NULL )
726728 {
727729 ASSERT (false);
730+ free (fdinfo );
728731 continue ;
729732 }
730733
@@ -733,6 +736,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
733736 if (token == NULL )
734737 {
735738 ASSERT (false);
739+ free (fdinfo );
736740 continue ;
737741 }
738742
@@ -741,6 +745,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
741745 if (token == NULL )
742746 {
743747 ASSERT (false);
748+ free (fdinfo );
744749 continue ;
745750 }
746751
@@ -749,6 +754,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
749754 if (token == NULL )
750755 {
751756 ASSERT (false);
757+ free (fdinfo );
752758 continue ;
753759 }
754760
@@ -757,6 +763,7 @@ int32_t scap_fd_read_unix_sockets_from_proc_fs(scap_t *handle, scap_fdinfo **soc
757763 if (token == NULL )
758764 {
759765 ASSERT (false);
766+ free (fdinfo );
760767 continue ;
761768 }
762769
You can’t perform that action at this time.
0 commit comments