Improve inline doc

This commit is contained in:
hasufell 2014-05-17 03:05:19 +02:00
parent 0659288497
commit 03440fa469
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -208,8 +208,7 @@ static bool assemble_obj_arrays(char const * const obj_string,
str_tmp_ptr = strtok_r(NULL, "\n", &str_ptr_newline); str_tmp_ptr = strtok_r(NULL, "\n", &str_ptr_newline);
} }
free(string); /* set all out-variables */
*obj_v_out = obj_v; *obj_v_out = obj_v;
*obj_vt_out = obj_vt; *obj_vt_out = obj_vt;
obj_f->v = obj_f_v; obj_f->v = obj_f_v;
@ -220,6 +219,9 @@ static bool assemble_obj_arrays(char const * const obj_string,
*ec_out = ec; *ec_out = ec;
*vtc_out = vtc; *vtc_out = vtc;
/* cleanup */
free(string);
return true; return true;
} }