Skip to content

Commit 503645f

Browse files
authored
Merge pull request #557 from kolyshkin/nits
seccomp_accept_cb: fix memory leak
2 parents 2e66c1c + f464b59 commit 503645f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/seccomp_notify.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ gboolean seccomp_accept_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC_
7979
if (listener.fd < 0) {
8080
pexit("Failed to receive socket listener file descriptor");
8181
}
82+
free(listener.name);
8283

8384
_cleanup_free_ char *oci_config_path = g_strdup_printf("%s/config.json", opt_bundle_path);
8485
if (oci_config_path == NULL) {

0 commit comments

Comments
 (0)