title: Memory Leak Using JSON-C
body: <p>I am new to JSON-C, Please see my sample code and let me know of it will create any memory leak, if yes then how to free JSON-C object.</p>
  
  <pre><code>    struct json_object *new_obj         = NULL;
      new_obj = json_tokener_parse(strRawJSON);
      new_obj = json_object_object_get(new_obj, "FUU");
      if(NULL == new_obj){
          SYS_OUT("\nFUU not found in JSON");
          return NO;
      }
      new_obj = json_object_object_get(new_obj, "FOO"); // I m re-using new_obj, without free it?  
      if(NULL == new_obj){
          SYS_OUT("\nFOO not found in JSON");
          return NO;
      }
      // DO I need to clean new_obj, if yes then how ??
  </code></pre>
  
  <p>Do I need to clean new_obj, if yes then how. Can some one help to understand how to do memory management JSON-C.</p>
  
  <p>Thanks in Advance</p>