Re: [Libvir] [PATCH] Handle failed strdup and malloc.

2007-11-14 Thread Richard W.M. Jones
Jim Meyering wrote: I noticed a bunch of unchecked strdup's in a row, and audited the rest of the file: Handle failed strdup and malloc. * src/remote_internal.c: Don't dereference NULL after failed strdup or malloc in doRemoteOpen. This is all good stuff, except that

[Libvir] [PATCH] Handle failed strdup and malloc.

2007-11-14 Thread Jim Meyering
I noticed a bunch of unchecked strdup's in a row, and audited the rest of the file: Handle failed strdup and malloc. * src/remote_internal.c: Don't dereference NULL after failed strdup or malloc in doRemoteOpen. --- src/remote_internal.c | 22 ++ 1

Re: [Libvir] [PATCH] Handle failed strdup and malloc.

2007-11-14 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: Jim Meyering wrote: I noticed a bunch of unchecked strdup's in a row, and audited the rest of the file: Handle failed strdup and malloc. * src/remote_internal.c: Don't dereference NULL after failed strdup or malloc in