Changeset 5901:64d1f534671b in roaraudio for libroar/libroar.c
- Timestamp:
- 04/14/13 16:59:26 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/libroar.c
r5837 r5901 179 179 pid_t roar_fork(const struct roar_libroar_forkapi * api) { 180 180 void * context = NULL; 181 int err;182 181 pid_t ret; 183 182 … … 195 194 api->failed(&context, api->userdata); 196 195 197 if ( context != NULL ) { 198 err = roar_error; 199 roar_mm_free(context); 200 roar_error = err; 201 } 196 if ( context != NULL ) 197 roar_mm_free_noerror(context); 202 198 return (pid_t)-1; 203 199 } … … 208 204 api->failed(&context, api->userdata); 209 205 210 if ( context != NULL ) { 211 err = roar_error; 212 roar_mm_free(context); 213 roar_error = err; 214 } 206 if ( context != NULL ) 207 roar_mm_free_noerror(context); 215 208 return (pid_t)-1; 216 209 } … … 224 217 } 225 218 226 if ( context != NULL ) { 227 err = roar_error; 228 roar_mm_free(context); 229 roar_error = err; 230 } 219 if ( context != NULL ) 220 roar_mm_free_noerror(context); 231 221 232 222 return ret;
Note: See TracChangeset
for help on using the changeset viewer.