search for: string_free

Displaying 5 results from an estimated 5 matches for "string_free".

Did you mean: g_string_free
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...e { + cth.smallest_released = i; + } + } + + + if ( conn->ngroups && conn->groups ) { + free(conn->groups); + } + + free_namearray(conn->veto_list); + free_namearray(conn->hide_list); + free_namearray(conn->veto_oplock_list); - string_free(&conn->user); - string_free(&conn->dirpath); - string_free(&conn->connectpath); - string_free(&conn->origpath); - - bitmap_clear(bmap, conn->cnum); - num_open--; + string_free(&conn->user); + string_free(&conn->dirpath); + string_free(&conn-...
2023 Jan 31
1
[PATCH libnbd] generator: Pass LISTEN_FDNAMES=nbd with systemd socket activation
...string-vector.h > > index 80d7311debfb..5221c70e3f78 100644 > > --- a/common/utils/string-vector.h > > +++ b/common/utils/string-vector.h > > @@ -39,4 +39,10 @@ > > > > DEFINE_VECTOR_TYPE(string_vector, char *); > > > > +static inline void > > +string_free (char *string) > > +{ > > + free (string); > > +} > > + > > #endif /* STRING_VECTOR_H */ > > Comments please :) Agreed. > (3) At the last hunk, the code suggests we're between fork() and exec(). > Per POSIX > <https://pubs.opengroup.org/onlin...
2023 Jan 31
1
[PATCH libnbd] generator: Pass LISTEN_FDNAMES=nbd with systemd socket activation
.../common/utils/string-vector.h b/common/utils/string-vector.h > index 80d7311debfb..5221c70e3f78 100644 > --- a/common/utils/string-vector.h > +++ b/common/utils/string-vector.h > @@ -39,4 +39,10 @@ > > DEFINE_VECTOR_TYPE(string_vector, char *); > > +static inline void > +string_free (char *string) > +{ > + free (string); > +} > + > #endif /* STRING_VECTOR_H */ Comments please :) (3) At the last hunk, the code suggests we're between fork() and exec(). Per POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html>, there we can onl...
2023 Jan 28
1
[PATCH libnbd] generator: Pass LISTEN_FDNAMES=nbd with systemd socket activation
systemd allows sockets passed through socket activation to be named with the protocol they require. We only ever pass one socket, name it. This environment variable is currently ignored by qemu-nbd and nbdkit, but might be used by qemu-storage-daemon: https://lists.nongnu.org/archive/html/qemu-devel/2023-01/msg06114.html --- generator/states-connect-socket-activation.c | 41
2003 Dec 01
0
No subject
...SIGSEGV, Segmentation fault. __libc_free (mem=0x80) at malloc.c:3025 3025 malloc.c: No such file or directory. (gdb) bt full #0 __libc_free (mem=0x80) at malloc.c:3025 mem = (void *) 0x80 ar_ptr = (arena *) 0xbfffee0c p = 0x81ea2c8 ar_ptr = (arena *) 0xbfffee0c p = 0x81ea2c8 #1 0x80fa040 in string_free (s=0x81ea340) at lib/util_str.c:1120 s = (char **) 0x81ea340 #2 0x804c914 in file_free (fsp=0x81ea2c8) at smbd/files.c:300 fsp = (files_struct *) 0x81ea2c8 #3 0x80a540f in _srv_net_file_query_secdesc (p=0x81f2758, q_u=0xbffff7a4, r_u=0xbffff78c) at rpc_server/srv_srvsvc_nt.c:1665 p = (pipe...